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