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: jobs:
build: build:
strategy: strategy:
fail-fast: ${{ github.event.inputs.fail_fast }} fail-fast: ${{ github.event.inputs.fail_fast || 'true' }}
matrix: matrix:
include: include:
- os: ubuntu-latest - os: ubuntu-latest
target: x86_64-unknown-linux-musl target: x86_64-unknown-linux-musl
tools: musl-tools tools: musl-tools
artifact: true
- os: macos-13 - os: macos-13
target: x86_64-apple-darwin target: x86_64-apple-darwin
# - os: macos-latest # - os: macos-latest
@@ -75,3 +76,14 @@ jobs:
- name: Run tests - 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