aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorDamian Gryski <[email protected]>2024-07-02 07:02:03 -0700
committerGitHub <[email protected]>2024-07-02 07:02:03 -0700
commit9cb263479c4b98f2d28889ca1acc297454e0d875 (patch)
treea30bcf8ef9086c5b8edfcee3b42bef352f396878 /.github
parentf18c6e342f834988caf43fd652b2baae9c3093f0 (diff)
downloadtinygo-9cb263479c4b98f2d28889ca1acc297454e0d875.tar.gz
tinygo-9cb263479c4b98f2d28889ca1acc297454e0d875.zip
wasi preview 2 support (#4027)
* all: wasip2 support Co-authored-by: Randy Reddig <[email protected]>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/linux.yml24
-rw-r--r--.github/workflows/windows.yml4
2 files changed, 15 insertions, 13 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
index 38f0d92f5..8bb92e083 100644
--- a/.github/workflows/linux.yml
+++ b/.github/workflows/linux.yml
@@ -134,17 +134,19 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
+ with:
+ submodules: true
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
cache: true
- name: Install wasmtime
- run: |
- mkdir -p $HOME/.wasmtime $HOME/.wasmtime/bin
- curl https://github.com/bytecodealliance/wasmtime/releases/download/v14.0.4/wasmtime-v14.0.4-x86_64-linux.tar.xz -o wasmtime-v14.0.4-x86_64-linux.tar.xz -SfL
- tar -C $HOME/.wasmtime/bin --wildcards -xf wasmtime-v14.0.4-x86_64-linux.tar.xz --strip-components=1 wasmtime-v14.0.4-x86_64-linux/*
- echo "$HOME/.wasmtime/bin" >> $GITHUB_PATH
+ uses: bytecodealliance/actions/wasmtime/setup@v1
+ with:
+ version: "19.0.1"
+ - name: Install wasm-tools
+ uses: bytecodealliance/actions/wasm-tools/setup@v1
- name: Download release artifact
uses: actions/download-artifact@v4
with:
@@ -154,8 +156,8 @@ jobs:
mkdir -p ~/lib
tar -C ~/lib -xf tinygo.linux-amd64.tar.gz
ln -s ~/lib/tinygo/bin/tinygo ~/go/bin/tinygo
- - run: make tinygo-test-wasi-fast
- run: make tinygo-test-wasip1-fast
+ - run: make tinygo-test-wasip2-fast
- run: make smoketest
assert-test-linux:
# Run all tests that can run on Linux, with LLVM assertions enabled to catch
@@ -187,11 +189,11 @@ jobs:
with:
node-version: '18'
- name: Install wasmtime
- run: |
- mkdir -p $HOME/.wasmtime $HOME/.wasmtime/bin
- curl -L https://github.com/bytecodealliance/wasmtime/releases/download/v14.0.4/wasmtime-v14.0.4-x86_64-linux.tar.xz -o wasmtime-v14.0.4-x86_64-linux.tar.xz -SfL
- tar -C $HOME/.wasmtime/bin --wildcards -xf wasmtime-v14.0.4-x86_64-linux.tar.xz --strip-components=1 wasmtime-v14.0.4-x86_64-linux/*
- echo "$HOME/.wasmtime/bin" >> $GITHUB_PATH
+ uses: bytecodealliance/actions/wasmtime/setup@v1
+ with:
+ version: "19.0.1"
+ - name: Setup `wasm-tools`
+ uses: bytecodealliance/actions/wasm-tools/setup@v1
- name: Restore LLVM source cache
uses: actions/cache/restore@v4
id: cache-llvm-source
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 5cfba9217..2b26a9b1c 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -220,5 +220,5 @@ jobs:
shell: bash
working-directory: build
run: 7z x release.zip -r
- - name: Test stdlib packages on wasi
- run: make tinygo-test-wasi-fast TINYGO=$(PWD)/build/tinygo/bin/tinygo
+ - name: Test stdlib packages on wasip1
+ run: make tinygo-test-wasip1-fast TINYGO=$(PWD)/build/tinygo/bin/tinygo