Files
another-asteroids/.gitea/workflows/basic.yml
Robert Garrett 16b118f37d Update basic.yml workflow for Bevy 0.17
This thing has been broken since a48dfc1d65 (v0.5.0 + 1) when the game
was upgraded to Bevy 0.17. Install the libwayland-dev package to get the
CI runner building correctly again.

I also increased the artifact retention period to 7 days... I'm not sure
I actually want to keep any artifacts, but if I'm going to then I should
keep them long enough for me to go back and look at them.
2025-12-25 23:35:20 -06:00

52 lines
1.4 KiB
YAML

permissions:
contents: read
on:
push:
branches: [trunk]
pull_request:
name: Basic checks
jobs:
stable-build-lint-test:
runs-on: ubuntu-latest
name: Basic build-and-test supertask
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install Rust Stable
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt clippy
- name: Install system dependencies
run: >
sudo apt-get update &&
sudo apt-get install -y --no-install-recommends
libasound2-dev
libudev-dev
libwayland-dev
- name : cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
- name: cargo fmt --check
run: cargo fmt --check
- name: cargo check
id: cargo_check
run: cargo check --locked
- name: cargo build
id: cargo_build
if: steps.cargo_check.outcome == 'success'
run: cargo build --locked --release
- name: cargo test
id: cargo_test
if: steps.cargo_build.outcome == 'success'
run: cargo test --locked --release
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: roberts-bad-asteroids-game
path: target/release/asteroids
if-no-files-found: 'error'
retention-days: 7
compression-level: 9
overwrite: true