-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added workflow to release gosdk with version (#1728)
- Loading branch information
1 parent
fd17b62
commit f93a045
Showing
1 changed file
with
48 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Build-and-release-wasm | ||
|
||
concurrency: | ||
group: "build-release-wasm-${{ github.ref }}" | ||
cancel-in-progress: true | ||
|
||
on: | ||
push: | ||
# branches: [ master, staging, qa ] | ||
tags: | ||
- 'v*.*.*' | ||
# pull_request: | ||
workflow_dispatch: | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GOSDK }} | ||
|
||
jobs: | ||
build-wasm: | ||
name: Build-wasm | ||
runs-on: [self-hosted, arc-runner] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
# - name: Set up Go 1.23 | ||
# uses: actions/setup-go@v3 | ||
# with: | ||
# go-version: 1.23 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install build-essential nghttp2 libnghttp2-dev libssl-dev wget | ||
- name: Build | ||
run: | | ||
docker run --rm -v $PWD:/gosdk -w /gosdk golang:1.23 make wasm-build | ||
ls -lha | ||
CURRENT_TAG=$(git describe --tags --exact-match) | ||
mv zcn.wasm zcn-${CURRENT_TAG}-normal.wasm | ||
ls -lha | ||
# - name: 'Upload Artifact' | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: zcn.wasm | ||
# path: zcn.wasm |