Skip to content

Commit

Permalink
added workflow to release gosdk with version (#1728)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahnawaz-creator authored Jan 7, 2025
1 parent fd17b62 commit f93a045
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build-release-wasm.yaml
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

0 comments on commit f93a045

Please sign in to comment.