Add optional artifact step for ubuntu build, fix fail_fast evaluation for non-dispatch

This commit is contained in:
2024-10-07 14:25:15 -05:00
parent 2e15d81dc9
commit 0cc92b8978

View File

@@ -26,13 +26,14 @@ env:
jobs:
build:
strategy:
fail-fast: ${{ github.event.inputs.fail_fast }}
fail-fast: ${{ github.event.inputs.fail_fast || 'true' }}
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
tools: musl-tools
artifact: true
- os: macos-13
target: x86_64-apple-darwin
# - os: macos-latest
@@ -74,4 +75,15 @@ jobs:
testing-${{ runner.os }}-
- name: Run tests
run: cargo test --verbose --target ${{ matrix.target }}
run: cargo test --verbose --target ${{ matrix.target }}
- name: Build
if: matrix.artifact
run: cargo build --verbose --target ${{ matrix.target }}
- name: Upload Artifact
if: matrix.artifact
uses: actions/upload-artifact@v4
with:
name: spotify-quickauth-${{ github.sha }}-${{ matrix.target }}
path: target/${{ matrix.target }}/debug/spotify-quickauth