Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
loganek committed Oct 10, 2022
1 parent 082ec55 commit d9c4692
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,27 @@ jobs:

- name: Build libc
shell: bash
run: make -j4
run: |
cmake -DCMAKE_INSTALL_PREFIX=install-sysroot .
cmake --build . --target install
ctest
- uses: actions/upload-artifact@v1
with:
# Upload the sysroot folder. Give it a name according to the OS it was built for.
name: ${{ format( 'sysroot-{0}.tgz', matrix.os) }}
path: sysroot
path: install-sysroot

- 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
run: |
cmake -DCMAKE_INSTALL_PREFIX=install-sysroot -DTHREAD_MODEL=posix .
cmake --build . --target install
ctest
# Disable the headerstest job for now, while WASI transitions from the
# witx snapshots to wit proposals, and we have a few manual edits to the
Expand Down
2 changes: 2 additions & 0 deletions tools/gen-imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ def main(argv) -> None:
args, unparsed = parser.parse_known_args()

args.nm = os.path.normpath(args.nm)
print('path:', args.libc_imports_output)
print('normalized path:', os.path.normpath(args.libc_imports_output))
args.libc_imports_output = os.path.normpath(args.libc_imports_output)
args.defined_symbols_output = os.path.normpath(args.defined_symbols_output)
args.undefined_symbols_output = os.path.normpath(
Expand Down

0 comments on commit d9c4692

Please sign in to comment.