Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
fix: bad parameters for WATM Release CI
Browse files Browse the repository at this point in the history
Signed-off-by: Gaukas Wang <i@gaukas.wang>
  • Loading branch information
gaukas committed Feb 5, 2024
1 parent de48049 commit f4d1cba
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ jobs:
strategy:
fail-fast: true
matrix:
examples: [ "plain", "reverse", "utls" ] # Add more examples here, corresponding directories must exist under tinygo/v0/examples
watm: [
{ name: "plain", scheduler: "none", gc: "leaking", tags: "purego" },
{ name: "reverse", scheduler: "none", gc: "leaking", tags: "purego" },
{ name: "utls", scheduler: "asyncify", gc: "leaking", tags: "purego" }
]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand All @@ -26,15 +30,15 @@ jobs:
with:
tinygo-version: '0.30.0'
- name: Build WASI Artifacts
run: tinygo build -o ${{ matrix.examples }}.wasm
-target=wasi -no-debug -scheduler=none -gc=leaking
-tags=purego
run: tinygo build -o ${{ matrix.watm.name }}.wasm
-target=wasi -no-debug -scheduler=${{ matrix.watm.scheduler }}
-gc=${{ matrix.watm.gc }} -tags=${{ matrix.watm.tags }}
./tinygo/v0/examples/${{ matrix.examples }}/
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: tinygo_v0_${{ matrix.examples }}.wasm
path: ${{ matrix.examples }}.wasm
name: tinygo_v0_${{ matrix.watm.name }}.wasm
path: ${{ matrix.watm.name }}.wasm
retention-days: 1

release:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ Cargo.lock

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# Ignore WebAssembly
*.wasm

0 comments on commit f4d1cba

Please sign in to comment.