From 8b596fd1b01866d7bcf1904f940cd7b74a48aece Mon Sep 17 00:00:00 2001 From: extrawurst Date: Sat, 22 Mar 2025 19:16:34 +0100 Subject: [PATCH] split out release build to manual or master push --- .github/workflows/ci.yml | 33 +-------------------------- .github/workflows/ci_release.yml | 38 ++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 32 deletions(-) create mode 100644 .github/workflows/ci_release.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b33cd79..650b1ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,35 +35,4 @@ jobs: - uses: actions/upload-artifact@v4 with: name: 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 \ No newline at end of file + path: ./steamos-debug.tar.gz \ No newline at end of file diff --git a/.github/workflows/ci_release.yml b/.github/workflows/ci_release.yml new file mode 100644 index 0000000..d60e474 --- /dev/null +++ b/.github/workflows/ci_release.yml @@ -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 \ No newline at end of file