Skip to content

WebGAL Terre android version #148

WebGAL Terre android version

WebGAL Terre android version #148

Workflow file for this run

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-arm64.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
build-android:
name: Build Android Binary
runs-on: ubuntu-latest
env:
KEYSTORE: ${{ secrets.KEYSTORE }}
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: Set up Java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 21
- name: Decode and save keystore
if: ${{ env.KEYSTORE != '' }}
run: |
echo "${{ secrets.KEYSTORE }}" | base64 --decode > packages/terre-android/app/keystore.jks
- name: Save key.properties
if: ${{ env.KEYSTORE != '' }}
run: |
echo "storePassword=${{ secrets.STORE_PASSWORD }}" >> packages/terre-android/key.properties
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> packages/terre-android/key.properties
echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> packages/terre-android/key.properties
echo "storeFile=keystore.jks" >> packages/terre-android/key.properties
- name: Build
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: sh release-android.sh
- name: Upload Release Artifact
if: ${{ env.KEYSTORE != '' }}
uses: actions/upload-artifact@v4
with:
name: WebGAL_Terre_Android
path: release/WebGAL_Terre_Android.apk
- name: Upload Debug Artifact
if: ${{ env.KEYSTORE == '' }}
uses: actions/upload-artifact@v4
with:
name: WebGAL_Terre_Android_debug
path: release/WebGAL_Terre_Android_debug.apk