-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test on CI that just the sysroot can be built
This commit adds a test and matrix entry to CI which asserts that the sysroot can be built to run tests using a stock Clang compiler found on the system. This fixes a few minor issues as well in developing this. This additionally refactors CI a bit to move shared steps amongst jobs into separate composite actions in this repository to avoid duplication across jobs.
- Loading branch information
1 parent
0de1b48
commit a3bcdaa
Showing
5 changed files
with
72 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: 'Prepare wasi-sdk git directory' | ||
description: 'Prepare wasi-sdk git directory' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- run: git fetch --tags --force | ||
name: Force-fetch tags to work around actions/checkout#290 | ||
shell: bash | ||
# We can't use `--depth 1` here sadly because the GNU config | ||
# submodule is not pinned to a particular tag/branch. Please | ||
# bump depth (or even better, the submodule), in case of "error: | ||
# Server does not allow request for unadvertised object" in the | ||
# future. | ||
- run: git submodule update --init --depth 64 --jobs 3 | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: 'Install wasi-sdk dependencies' | ||
description: 'Install wasi-sdk dependencies' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Setup `wasmtime` for tests | ||
uses: bytecodealliance/actions/wasmtime/setup@v1 | ||
with: | ||
version: "18.0.2" | ||
- name: Install ccache, ninja (macOS) | ||
run: brew install ccache ninja | ||
if: runner.os == 'macOS' | ||
shell: bash | ||
- name: Install ccache, ninja (Windows) | ||
run: choco install ccache ninja | ||
if: runner.os == 'Windows' | ||
shell: bash | ||
- name: Install ccache, ninja (Linux) | ||
run: sudo apt-get install -y ccache ninja-build | ||
if: runner.os == 'Linux' | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters