Skip to content

Commit c4010d6

Browse files
committed
Tar up built Rust tests before uploading as artifact
The goal is to allow weird files to be in the test data, and upload-artifact doesn't seem to like weird files.
1 parent d1a979e commit c4010d6

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/compile-tests.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- '*'
1010
paths:
1111
- 'tests/**'
12+
- '.github/workflows/compile-tests.yml'
1213

1314
jobs:
1415
build_assemblyscript:
@@ -67,14 +68,16 @@ jobs:
6768
run: |
6869
./build.py --toolchain=wasm32-wasip3:nightly
6970
71+
- name: 'Tar files'
72+
if: matrix.os == 'ubuntu-latest'
73+
run: tar -cvf rust-testsuite.tar tests/rust/testsuite
74+
7075
- name: Upload precompiled tests
7176
if: matrix.os == 'ubuntu-latest'
7277
uses: actions/upload-artifact@v4
7378
with:
7479
name: rust-testsuite
75-
path: tests/rust/testsuite
76-
if-no-files-found: error
77-
include-hidden-files: true
80+
path: rust-testsuite.tar
7881

7982
build_c:
8083
name: Build C tests
@@ -189,7 +192,6 @@ jobs:
189192
uses: actions/download-artifact@v4
190193
with:
191194
name: rust-testsuite
192-
path: ./tests/rust/testsuite
193195

194196
- name: Download C test binaries
195197
uses: actions/download-artifact@v4
@@ -203,6 +205,10 @@ jobs:
203205
name: assemblyscript-testsuite
204206
path: ./tests/assemblyscript/testsuite
205207

208+
- name: Untar tests
209+
run: |
210+
tar -xvf rust-testsuite.tar
211+
206212
- name: Run tests
207213
continue-on-error: true
208214
run: |
@@ -244,6 +250,11 @@ jobs:
244250
name: ${{ matrix.suite }}-testsuite
245251
path: ./tests/${{ matrix.suite }}/testsuite
246252

253+
- name: Untar tests
254+
if: ${{ matrix.suite }} == 'rust'
255+
run: |
256+
tar -xvf ${{ matrix.suite }}-testsuite.tar
257+
247258
- name: Publish changes to consumer branch
248259
shell: bash
249260
run: |

0 commit comments

Comments
 (0)