Files
HEDZReloaded/.github/workflows/ci_debug.yml
extrawurst 16b08e2547
Some checks failed
ci / ci ([self-hosted linux]) (push) Has been cancelled
ci / ci ([self-hosted macos]) (push) Has been cancelled
use gitea compatible artifact upload
2025-12-22 22:07:04 -05:00

45 lines
1.3 KiB
YAML

name: ci_debug
on:
workflow_dispatch: # Enables manual triggers
jobs:
debug:
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
- uses: cargo-bins/cargo-binstall@main
- uses: extractions/setup-just@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: clippy, rustfmt
- name: install linux dependencies
if: runner.os == 'linux'
run: |
sudo apt-get update
sudo apt-get install -y libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
- name: Build client
run: |
cargo build --locked --target=x86_64-unknown-linux-gnu --bin hedz_reloaded
- name: Build server
run: |
cargo build --locked --target=x86_64-unknown-linux-gnu --bin hedz_reloaded_server --no-default-features
- name: Lints
run: |
cargo clippy
- name: Archive
run: |
cp target/x86_64-unknown-linux-gnu/debug/hedz_reloaded target/x86_64-unknown-linux-gnu/debug/hedz_reloaded_server ./
tar -czf steamos-debug.tar.gz hedz_reloaded hedz_reloaded_server
- uses: christopherhx/gitea-upload-artifact@v4
with:
name: steamos-debug.tar.gz
path: ./steamos-debug.tar.gz