ci: switch to arm64 native build #136
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 WebGAL Terre | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
jobs: | |
build-linux: | |
name: Build Linux Binary | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
cache: 'yarn' | |
- name: Build | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: sh release-linux.sh | |
- name: Compress | |
run: 7z a -tzip release/WebGAL_Terre_Linux.zip release/* | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: WebGAL_Terre_Linux | |
path: release/WebGAL_Terre_Linux.zip | |
build-arm64: | |
name: Build Linux ARM64 Binary | |
runs-on: ubuntu-24.04-arm | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
cache: 'yarn' | |
- name: Build | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: sh release-linux.sh | |
- name: Compress | |
run: 7z a -tzip release/WebGAL_Terre_Linux_Arm64.zip release/* | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: WebGAL_Terre_Linux_Arm64 | |
path: release/WebGAL_Terre_Linux_Arm64.zip | |
build-mac: | |
name: Build MacOS Binary | |
runs-on: macos-14 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
cache: 'yarn' | |
- name: Build | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: sh release-mac.sh | |
- name: Compress | |
run: 7z a -tzip release/WebGAL_Terre_Mac.zip release/* | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: WebGAL_Terre_Mac | |
path: release/WebGAL_Terre_Mac.zip | |
build-windows: | |
name: Build Windows Binary | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
cache: 'yarn' | |
- name: Build | |
shell: bash | |
run: ./release.sh | |
- name: Compress | |
run: 7z a -tzip release/WebGAL_Terre_Windows.zip release/* | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: WebGAL_Terre_Windows | |
path: release/WebGAL_Terre_Windows.zip | |
build-windows-nsis: | |
name: Build Windows Setup | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
cache: 'yarn' | |
- name: Build | |
shell: bash | |
run: ./release.sh | |
- name: Build Setup | |
shell: bash | |
run: mkdir bundle && yarn nsis-bundle | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: WebGAL_Terre_Windows_Setup | |
path: bundle/WebGal_Terre_Setup.exe |