fix build #345
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 Rollapp-wasm | |
on: ["push"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
arch: [amd64] | |
targetos: [darwin, linux] | |
go-version: ['1.21.x'] | |
include: | |
- targetos: darwin | |
arch: arm64 | |
name: rollapp ${{ matrix.arch }} for ${{ matrix.targetos }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/[email protected] | |
with: | |
go-version: ${{ matrix.go-version }} | |
env: | |
GOOS: ${{ matrix.targetos }} | |
GOARCH: ${{ matrix.arch }} | |
- name: Compile rollapp-wasm | |
run: | | |
go mod download | |
cd rollappd | |
go build . | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: rollappd ${{ matrix.targetos }} ${{ matrix.arch }} | |
path: rollappd/rollappd |