-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating workflows to include wasm as a part of release assets
- Loading branch information
Showing
4 changed files
with
53 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ name: Deploy static content to GitHub Pages | |
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
branches: ["main"] | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -26,15 +26,29 @@ jobs: | |
- name: Prepare pages directory | ||
run: | | ||
cp scripts/install/* pages/ | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
- uses: robinraju/[email protected] | ||
with: | ||
go-version: 'stable' | ||
- name: Build WASM to pages directory | ||
latest: true | ||
fileName: '*wasm*' | ||
- name: Add WASM files to pages directory | ||
run: | | ||
unzip xipher_js_wasm.zip | ||
mkdir -p pages/wasm | ||
GOOS=js GOARCH=wasm go build -o pages/wasm/xipher.wasm ./app/wasm | ||
cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" pages/wasm/ | ||
mv wasm_exec.js pages/wasm/ | ||
mv xipher.wasm pages/wasm/ | ||
- name: Checkout xenigma | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: shibina3/xenigma | ||
path: xenigma | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
- name: Install node dependencies | ||
run: npm -C xenigma ci | ||
- name: Build Xenigma | ||
run: npm -C xenigma run build | ||
- name: Add pages from Xenigma | ||
run: mv xenigma/build pages/web | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v4 | ||
- name: Upload artifact | ||
|
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