Skip to content

Commit

Permalink
wasm build job in internal release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LinceMathew committed Sep 8, 2024
1 parent d467d1d commit 7c0de39
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/internal_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,23 @@ jobs:
binary_name: "l2"
extra_files: LICENSE README.md
ldflags: -X main.version=${{ github.ref_name }}
build_flags: '-tags=cli'
build_flags: '-tags=cli'
# Separate job for Wasm build
wasm-build:
permissions: write-all
name: Build WebAssembly Binary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/[email protected]
with:
go-version: "https://dl.google.com/go/go1.19.3.linux-amd64.tar.gz"
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: js
goarch: wasm
goversion: "https://dl.google.com/go/go1.19.3.linux-amd64.tar.gz"
binary_name: "l2.wasm"
extra_files: LICENSE README.md
ldflags: -X main.version=${{ github.ref_name }}
build_flags: |
-tags=wasm -a -gcflags="all=-l -wb=false -ldflags="-w -s"

0 comments on commit 7c0de39

Please sign in to comment.