This commit is contained in:
Evan Simkowitz 2024-03-01 18:21:34 -08:00
parent c08b1eb54f
commit 25788bc30b
No known key found for this signature in database

View File

@ -15,9 +15,11 @@ jobs:
runner: "macos-latest-xlarge" runner: "macos-latest-xlarge"
scripthaus: "build-package" scripthaus: "build-package"
- platform: "linux" - platform: "linux"
arch: arch: "arm64"
- "amd64" runner: "ubuntu-latest"
- "arm64" scripthaus: "build-package-linux"
- platform: "linux"
arch: "amd64"
runner: "ubuntu-latest" runner: "ubuntu-latest"
scripthaus: "build-package-linux" scripthaus: "build-package-linux"
runs-on: ${{ matrix.runner }} runs-on: ${{ matrix.runner }}
@ -56,15 +58,13 @@ jobs:
echo "WAVETERM_VERSION=${VERSION}" >> "$GITHUB_OUTPUT" echo "WAVETERM_VERSION=${VERSION}" >> "$GITHUB_OUTPUT"
- name: Install Yarn Dependencies - name: Install Yarn Dependencies
run: yarn --frozen-lockfile run: yarn --frozen-lockfile
- name: Build - name: Build ${{ matrix.platform }}/${{ matrix.arch }}
run: | run: ./scripthaus/scripthaus run ${{ matrix.scripthaus }}
for arch in ${{ matrix.arch }}; do env:
echo "Building for ${{ matrix.platform }}/$arch" GOARCH: ${{ matrix.arch }}
GOARCH=$arch ./scripthaus/scripthaus run ${{ matrix.scripthaus }}
done
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: waveterm-build-${{ matrix.platform }}-${{ matrix.arch }} name: waveterm-build-${{ matrix.platform }}
path: out/make/* path: out/make/*
retention-days: 2 retention-days: 2
upload: upload: