Skip to content

Commit

Permalink
Build all bins at once in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
widberg committed Oct 24, 2023
1 parent 573e0a6 commit 2135653
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ jobs:
strategy:
matrix:
name: [linux, windows, macos]
bin: [bff-cli, bff-gui]

include:
- name: linux
Expand All @@ -33,13 +32,15 @@ jobs:

- name: Install dependencies (Linux)
run: sudo apt-get -y install libgtk-3-dev libasound2-dev
if: matrix.name == 'linux' && matrix.bin == 'bff-gui'
if: matrix.name == 'linux'

- name: Build
run: cargo build --release --locked --bin ${{ matrix.bin }}
run: cargo build --release --locked --bins

- name: Archive Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.bin }}-${{ matrix.name }}-${{ github.sha }}
path: ./target/release/${{ matrix.bin }}${{ matrix.bin_extension }}
name: bff-${{ matrix.name }}-${{ github.sha }}
path: |
./target/release/bff-cli${{ matrix.bin_extension }}
./target/release/bff-gui${{ matrix.bin_extension }}

0 comments on commit 2135653

Please sign in to comment.