-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ipv6_loopback
- Loading branch information
Showing
207 changed files
with
4,760 additions
and
3,373 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
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,45 @@ | ||
name: WebAssembly CI | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
SPEC_SPLIT_DOTS: 160 | ||
|
||
jobs: | ||
wasm32-test: | ||
runs-on: ubuntu-latest | ||
container: crystallang/crystal:1.6.1-build | ||
steps: | ||
- name: Download Crystal source | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install wasmtime | ||
uses: mwilliamson/setup-wasmtime-action@v1 | ||
with: | ||
wasmtime-version: "2.0.0" | ||
|
||
- name: Install LLVM 13 | ||
run: | | ||
apt-get update | ||
apt-get install -y curl lsb-release wget software-properties-common gnupg | ||
curl -O https://apt.llvm.org/llvm.sh | ||
chmod +x llvm.sh | ||
./llvm.sh 13 | ||
ln -s $(which wasm-ld-13) /usr/bin/wasm-ld | ||
- name: Download wasm32 libs | ||
run: | | ||
mkdir wasm32-wasi-libs | ||
curl -LO https://github.com/lbguilherme/wasm-libs/releases/download/0.0.2/wasm32-wasi-libs.tar.gz | ||
echo "114dd08b776c92e15b4ec83178fa486dc436e24b7f662c3241a8cdf2506fe426 wasm32-wasi-libs.tar.gz" | sha256sum -c - | ||
tar -f wasm32-wasi-libs.tar.gz -C wasm32-wasi-libs -xz | ||
rm wasm32-wasi-libs.tar.gz | ||
- name: Build spec/wasm32_std_spec.cr | ||
run: bin/crystal build spec/wasm32_std_spec.cr -o wasm32_std_spec.wasm --target wasm32-wasi | ||
env: | ||
CRYSTAL_LIBRARY_PATH: ${{ github.workspace }}/wasm32-wasi-libs | ||
|
||
- name: Run wasm32_std_spec.wasm | ||
run: | | ||
wasmtime run wasm32_std_spec.wasm |
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
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
Oops, something went wrong.