split out release build to manual or master push
This commit is contained in:
31
.github/workflows/ci.yml
vendored
31
.github/workflows/ci.yml
vendored
@@ -36,34 +36,3 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: steamos-debug.tar.gz
|
name: steamos-debug.tar.gz
|
||||||
path: ./steamos-debug.tar.gz
|
path: ./steamos-debug.tar.gz
|
||||||
|
|
||||||
release:
|
|
||||||
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 and cache dependencies (Linux)"
|
|
||||||
uses: awalsh128/cache-apt-pkgs-action@latest
|
|
||||||
with:
|
|
||||||
packages: libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
|
|
||||||
version: 1.0
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: |
|
|
||||||
cargo build --release --locked --target=x86_64-unknown-linux-gnu
|
|
||||||
|
|
||||||
- name: Archive
|
|
||||||
run: |
|
|
||||||
cp 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
|
|
||||||
38
.github/workflows/ci_release.yml
vendored
Normal file
38
.github/workflows/ci_release.yml
vendored
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
name: ci_release
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch: # Enables manual triggers
|
||||||
|
push:
|
||||||
|
branches: ["master"]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
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 and cache dependencies (Linux)"
|
||||||
|
uses: awalsh128/cache-apt-pkgs-action@latest
|
||||||
|
with:
|
||||||
|
packages: libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
|
||||||
|
version: 1.0
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
cargo build --release --locked --target=x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
|
- name: Archive
|
||||||
|
run: |
|
||||||
|
cp 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