Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
More efficient build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
NexusSfan committed Jul 28, 2024
1 parent 24d758e commit 9e0da5c
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9e0da5c

Please sign in to comment.