Skip to content

Commit

Permalink
Merge pull request #321 from dabao1955/ci_refactor
Browse files Browse the repository at this point in the history
refactor(ci): refactor into two workflow files
  • Loading branch information
MakinoharaShoko authored Dec 14, 2024
2 parents f9b739b + 2762148 commit be4e2c7
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 374 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/build-terre.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: Build WebGAL Terre

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize

jobs:
build-linux:
Expand All @@ -21,11 +27,13 @@ jobs:
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
path: release/WebGAL_Terre_Linux.zip
build-arm64:
name: Build Linux ARM64 Binary
runs-on: ubuntu-latest
Expand Down Expand Up @@ -110,11 +118,14 @@ jobs:
rm -rf assets/templates/WebGAL_Android_Template/app/src/main/assets/webgal/.gitkeep
rm -rf assets/templates/WebGAL_Android_Template/app/src/main/java/com
echo "WebGAL Terre is now ready to be deployed."
- 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
path: release/WebGAL_Terre_Linux_Arm64.zip
build-mac:
name: Build MacOS Binary
runs-on: macos-14
Expand All @@ -130,11 +141,13 @@ jobs:
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
path: release/WebGAL_Terre_Mac.zip
build-windows:
name: Build Windows Binary
runs-on: windows-latest
Expand All @@ -149,11 +162,13 @@ jobs:
- 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
path: release/WebGAL_Terre_Windows.zip
build-windows-nsis:
name: Build Windows Setup
runs-on: windows-latest
Expand All @@ -176,4 +191,3 @@ jobs:
with:
name: WebGAL_Terre_Windows_Setup
path: bundle/WebGal_Terre_Setup.exe

181 changes: 0 additions & 181 deletions .github/workflows/pr-check.yml

This file was deleted.

Loading

0 comments on commit be4e2c7

Please sign in to comment.