Skip to content

Commit

Permalink
Upload source and test data on action failure
Browse files Browse the repository at this point in the history
  • Loading branch information
evolarjun committed Feb 13, 2024
1 parent afb3e67 commit eb53f32
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/mac-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,22 @@ jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: prerequisites
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install blast
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install blast
- name: make
run: make
- name: test
run: ./test_stxtyper.sh
- name: Upload artifacts on failure
uses: actions/upload-artifact@v4
if: ${{ failure() }} # only run if the job fails
with:
name: build-and-test-artifact
path: |
./*
test/*
retention-days: 14

0 comments on commit eb53f32

Please sign in to comment.