Build-and-release-wasm #7
Workflow file for this run
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
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 | |
with: | |
fetch-depth: 0 | |
# - 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: | | |
git checkout v1.18.17 | |
ls -lha | |
git status | |
CURRENT_TAG=$(git describe --tags --exact-match) | |
docker run --rm -v $PWD:/gosdk -w /gosdk golang:1.22.5 sh -c "git config --global --add safe.directory /gosdk; 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 |