mirror of
https://github.com/danbulant/cushy
synced 2026-06-20 23:11:12 +00:00
Adding CI
This commit is contained in:
parent
a95a7dc850
commit
a9498abf1a
2 changed files with 60 additions and 0 deletions
34
.github/workflows/docs.yml
vendored
Normal file
34
.github/workflows/docs.yml
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
name: Docs
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
docs:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install x11 dependencies for Kludgine
|
||||
run: |
|
||||
sudo apt-get update -y -qq
|
||||
sudo add-apt-repository ppa:oibaf/graphics-drivers -y
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y \
|
||||
libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
|
||||
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Generate Docs
|
||||
run: |
|
||||
cargo doc --no-deps --all-features --workspace
|
||||
|
||||
- name: Deploy Docs
|
||||
uses: JamesIves/github-pages-deploy-action@releases/v4
|
||||
with:
|
||||
branch: gh-pages
|
||||
folder: target/doc/
|
||||
git-config-name: kl-botsu
|
||||
git-config-email: botsu@khonsulabs.com
|
||||
target-folder: /main/
|
||||
clean: true
|
||||
26
.github/workflows/rust.yml
vendored
Normal file
26
.github/workflows/rust.yml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
name: Tests
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install x11 dependencies for Kludgine
|
||||
run: |
|
||||
sudo apt-get update -y -qq
|
||||
sudo add-apt-repository ppa:oibaf/graphics-drivers -y
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y \
|
||||
libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Run clippy
|
||||
run: |
|
||||
cargo clippy --all-features --all-targets
|
||||
|
||||
- name: Run default features unit tests
|
||||
run: |
|
||||
cargo test --all-features --all-targets
|
||||
Loading…
Reference in a new issue