run both mac builds

This commit is contained in:
sawka 2024-01-08 00:35:38 -08:00
parent 631a0867aa
commit 0bb80b6a74

View File

@ -2,15 +2,17 @@ name: "Build MacOS x64"
on: workflow_dispatch
env:
WAVETERM_VERSION: 0.5.3
GO_VERSION: '1.21.5'
NODE_VERSION: '21.5.0'
jobs:
runbuild:
runbuild-x64:
name: "Build MacOS x64"
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.21.5'
go-version: ${{env.GO_VERSION}}
cache-dependency-path: |
wavesrv/go.sum
waveshell/go.sum
@ -18,7 +20,7 @@ jobs:
- run: brew install scripthaus
- uses: actions/setup-node@v4
with:
node-version: '21.5.0'
node-version: ${{env.NODE_VERSION}}
cache: 'yarn'
- run: yarn --frozen-lockfile
- run: scripthaus run build-package
@ -27,5 +29,29 @@ jobs:
name: waveterm-build-darwin-x64
path: out/make/zip/darwin/x64/*.zip
retention-days: 2
runbuild-arm64:
name: "Build MacOS arm64"
runs-on: macos-latest-xlarge
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{env.GO_VERSION}}
cache-dependency-path: |
wavesrv/go.sum
waveshell/go.sum
- run: brew tap scripthaus-dev/scripthaus
- run: brew install scripthaus
- uses: actions/setup-node@v4
with:
node-version: ${{env.NODE_VERSION}}
cache: 'yarn'
- run: yarn --frozen-lockfile
- run: scripthaus run build-package
- uses: actions/upload-artifact@v3
with:
name: waveterm-build-darwin-arm64
path: out/make/zip/darwin/arm64/*.zip
retention-days: 2