mirror of https://github.com/WebAssembly/wasi-sdk
Add a test on CI that just the sysroot can be built (#465)
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.pull/472/head
parent
b2679166a9
commit
dc74ff1cf8
@ -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
|
@ -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
|
Loading…
Reference in new issue