diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 0c4cebb..aa4787c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 }} \ No newline at end of file + 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 \ No newline at end of file