From 9e0da5c50043b16ca57352c702eabe5fa6815383 Mon Sep 17 00:00:00 2001 From: NexusSfan Date: Sun, 28 Jul 2024 15:34:41 -0700 Subject: [PATCH] More efficient build.yaml --- .github/workflows/build.yaml | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4273ec9..b6b6f57 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -6,11 +6,7 @@ on: jobs: build: - strategy: - matrix: - target: [debian, binary] - fail-fast: false - name: Build for ${{ matrix.target }} + name: Build runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.7 @@ -19,25 +15,18 @@ jobs: run: | curl https://sh.rustup.rs -sSf | sh -s -- -y . "$HOME/.cargo/env" - - name: Create Package (binary) - if: matrix.target == 'binary' - shell: bash - run: cargo build --release --verbose - - name: Create Package (debian) - if: matrix.target == 'debian' + - name: Create Package shell: bash run: | cargo install cargo-deb cargo deb - - name: Output the result (binary) - if: matrix.target == 'binary' + - name: Output the binary uses: actions/upload-artifact@v4.3.4 with: name: pbskids-dl-rs_${{ runner.arch }} path: target/release/pbskids-dl if-no-files-found: error - - name: Output the result (debian) - if: matrix.target == 'debian' + - name: Output the debian package uses: actions/upload-artifact@v4.3.4 with: name: pbskids-dl-rs_${{ runner.arch }}.deb