Skip to content

Commit 90fd834

Browse files
committed
Ci publish: fail if no artefact found + handle lib
1 parent 8e90517 commit 90fd834

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ jobs:
7272
uses: actions/upload-artifact@v3
7373
with:
7474
name: libmithril
75+
if-no-files-found: error
7576
path: |
7677
mithril-core/target/release/libmithril.so
7778
mithril-core/target/include/mithril.h
@@ -80,6 +81,7 @@ jobs:
8081
uses: actions/upload-artifact@v3
8182
with:
8283
name: libmithril-doc
84+
if-no-files-found: error
8385
path: |
8486
mithril-core/target/doc/
8587
@@ -237,7 +239,7 @@ jobs:
237239
run: |
238240
set -o pipefail && cargo test --release -- -Z unstable-options --format json --report-time | tee >(cargo2junit > test-results-${{ matrix.project }}.xml)
239241
240-
- name: ${{ matrix.project }} / Generate doc
242+
- name: Generate ${{ matrix.project }} doc
241243
uses: actions-rs/cargo@v1
242244
with:
243245
command: doc
@@ -247,12 +249,16 @@ jobs:
247249
uses: actions/upload-artifact@v3
248250
with:
249251
name: ${{ matrix.project }}
250-
path: ${{ matrix.project }}/target/release/${{ matrix.project }}
252+
path: |
253+
${{ matrix.project }}/target/release/${{ matrix.project }}
254+
${{ matrix.project }}/target/release/lib*.so
255+
if-no-files-found: error
251256

252257
- name: Publish ${{ matrix.project }}-doc
253258
uses: actions/upload-artifact@v3
254259
with:
255260
name: ${{ matrix.project }}-doc
261+
if-no-files-found: error
256262
path: |
257263
${{ matrix.project }}/target/doc/
258264

0 commit comments

Comments
 (0)