steam os continous deployment (#7)
This commit is contained in:
43
.github/workflows/cd.yml
vendored
Normal file
43
.github/workflows/cd.yml
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
name: steamos
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: ["main"]
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
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
|
||||
|
||||
- uses: mlugg/setup-zig@v1
|
||||
with:
|
||||
version: 0.13.0
|
||||
|
||||
- uses: leafwing-studios/cargo-cache@v2
|
||||
with:
|
||||
sweep-cache: true
|
||||
|
||||
- name: Install cargo-zigbuild
|
||||
run: cargo install cargo-zigbuild
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
cargo zigbuild --release --target x86_64-unknown-linux-gnu.2.27
|
||||
|
||||
- name: Archive
|
||||
run: |
|
||||
mv target/x86_64-unknown-linux-gnu/release/hedz_reloaded hedz_reloaded
|
||||
tar -czf steamos.tar.gz hedz_reloaded
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: steamos.tar.gz
|
||||
path: ./steamos.tar.gz
|
||||
Reference in New Issue
Block a user