Skip to content

Commit

Permalink
Ci publish: fail if no artefact found + handle lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Alenar committed May 12, 2022
1 parent 8e90517 commit 90fd834
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: libmithril
if-no-files-found: error
path: |
mithril-core/target/release/libmithril.so
mithril-core/target/include/mithril.h
Expand All @@ -80,6 +81,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: libmithril-doc
if-no-files-found: error
path: |
mithril-core/target/doc/
Expand Down Expand Up @@ -237,7 +239,7 @@ jobs:
run: |
set -o pipefail && cargo test --release -- -Z unstable-options --format json --report-time | tee >(cargo2junit > test-results-${{ matrix.project }}.xml)
- name: ${{ matrix.project }} / Generate doc
- name: Generate ${{ matrix.project }} doc
uses: actions-rs/cargo@v1
with:
command: doc
Expand All @@ -247,12 +249,16 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.project }}
path: ${{ matrix.project }}/target/release/${{ matrix.project }}
path: |
${{ matrix.project }}/target/release/${{ matrix.project }}
${{ matrix.project }}/target/release/lib*.so
if-no-files-found: error

- name: Publish ${{ matrix.project }}-doc
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.project }}-doc
if-no-files-found: error
path: |
${{ matrix.project }}/target/doc/
Expand Down

0 comments on commit 90fd834

Please sign in to comment.