diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9d61e6ec8..c09dd6df9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -88,6 +88,14 @@ jobs: make -j4 WASI_SNAPSHOT=preview2 make -j4 + - name: Build libc + threads + # Only build the thread-capable wasi-libc in the latest supported Clang + # version; the earliest version does not have all necessary builtins + # (e.g., `__builtin_wasm_memory_atomic_notify`). + if: matrix.clang_version != '10.0.0' + shell: bash + run: make -j4 THREAD_MODEL=posix + - name: Test shell: bash # For Clang linking to work correctly, we need to place Clang's runtime @@ -110,14 +118,6 @@ jobs: # which is required by our malloc implementation. if: matrix.os == 'ubuntu-latest' && matrix.clang_version != '10.0.0' - - name: Build libc + threads - # Only build the thread-capable wasi-libc in the latest supported Clang - # version; the earliest version does not have all necessary builtins - # (e.g., `__builtin_wasm_memory_atomic_notify`). - if: matrix.clang_version != '10.0.0' - shell: bash - run: make -j4 THREAD_MODEL=posix - - uses: actions/upload-artifact@v1 with: # Upload the sysroot folder. Give it a name according to the OS it was built for.