mirror of
https://github.com/Xevion/spotify-quickauth.git
synced 2025-12-10 06:08:42 -06:00
Add optional artifact step for ubuntu build, fix fail_fast evaluation for non-dispatch
This commit is contained in:
16
.github/workflows/test.yaml
vendored
16
.github/workflows/test.yaml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user