Skip to content

Commit

Permalink
ci: Compile sync-checker in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
psyGamer committed Dec 13, 2024
1 parent ac34883 commit 56c8b5c
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/Build.SyncChecker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build Sync Checker

on:
workflow_call:
inputs:
build-cfg:
required: true
type: string
default: Release

jobs:
build-sync-checker:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0'

- name: Publish
run: dotnet publish SyncChecker -c ${{ inputs.build-cfg }} -p:UseAppHost=false --output build-sync-checker

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: SyncChecker
path: build-sync-checker/**
7 changes: 6 additions & 1 deletion .github/workflows/Build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build CelesteTAS + Studio
name: Build

on:
workflow_call:
Expand Down Expand Up @@ -27,6 +27,11 @@ jobs:
with:
build-cfg: Debug

build-sync-checker:
uses: ./.github/workflows/Build.SyncChecker.yml
with:
build-cfg: Debug

build-celestetas:
runs-on: ubuntu-latest
needs: build-studio
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,16 @@ jobs:
build-cfg: Release
needs: generate-changelog

build-sync-checker:
uses: ./.github/workflows/Build.SyncChecker.yml
with:
build-cfg: Release

release:
runs-on: ubuntu-latest
needs:
- build-studio
- build-sync-checker
- generate-changelog

steps:
Expand Down Expand Up @@ -93,6 +99,16 @@ jobs:
mv CelesteStudio-macos-x64/CelesteStudio-macos-x64.zip .
mv CelesteStudio-macos-arm64/CelesteStudio-macos-arm64.zip .
- name: Download SyncChecker builds
uses: actions/download-artifact@v4
with:
pattern: SyncChecker
- name: Generate SyncChecker archive
run: |
pushd SyncChecker
zip ../SyncChecker.zip **
popd
- name: Fill-in download info
run: |
sed -i "s\\false; //DOUBLE_ZIP_ARCHIVE\\false;\\" CelesteTAS-EverestInterop/Source/EverestInterop/StudioHelper.cs
Expand Down Expand Up @@ -159,6 +175,7 @@ jobs:
CelesteStudio-linux-x64.zip
CelesteStudio-macos-x64.zip
CelesteStudio-macos-arm64.zip
SyncChecker.zip
- name: Clean-up changelog artifacts
uses: geekyeggo/delete-artifact@v5
Expand Down

0 comments on commit 56c8b5c

Please sign in to comment.