From 3913d799674808041ab9dbe4619e9fc3b2bc7cac Mon Sep 17 00:00:00 2001 From: vulcandth Date: Mon, 10 Feb 2025 16:41:43 -0600 Subject: [PATCH] Update workflow --- .github/workflows/build.yml | 48 +++++++++++++++++------------------ .github/workflows/nightly.yml | 34 ++++++++++++------------- Makefile | 2 +- 3 files changed, 42 insertions(+), 42 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9091097a44..40d5f1f488 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,16 +55,16 @@ jobs: run: | make -j$(nproc) mkdir build - mv polishedcrystal-3.2.0-beta.gbc build/polishedcrystal-3.2.0-beta-${{ env.SHORT_SHA }}.gbc - mv polishedcrystal-3.2.0-beta.sym build/polishedcrystal-3.2.0-beta-${{ env.SHORT_SHA }}.sym + mv polishedcrystal-3.2.0.gbc build/polishedcrystal-nightly-${{ env.SHORT_SHA }}.gbc + mv polishedcrystal-3.2.0.sym build/polishedcrystal-nightly-${{ env.SHORT_SHA }}.sym make tidy - id: build-polishedcrystal-faithful name: "Build polishedcrystal-faithful" run: | make -j$(nproc) faithful - mv polishedcrystal-faithful-3.2.0-beta.gbc build/polishedcrystal-faithful-3.2.0-beta-${{ env.SHORT_SHA }}.gbc - mv polishedcrystal-faithful-3.2.0-beta.sym build/polishedcrystal-faithful-3.2.0-beta-${{ env.SHORT_SHA }}.sym + mv polishedcrystal-faithful-3.2.0.gbc build/polishedcrystal-faithful-nightly-${{ env.SHORT_SHA }}.gbc + mv polishedcrystal-faithful-3.2.0.sym build/polishedcrystal-faithful-nightly-${{ env.SHORT_SHA }}.sym make tidy # BUILD VC PATCHES @@ -72,18 +72,18 @@ jobs: name: "Build polishedcrystal vc" run: | make -j$(nproc) vc - mv polishedcrystal-3.2.0-beta_vc.gbc build/polishedcrystal-3.2.0-beta-${{ env.SHORT_SHA }}_vc.gbc - mv polishedcrystal-3.2.0-beta.patch build/polishedcrystal-3.2.0-beta-${{ env.SHORT_SHA }}.patch - mv polishedcrystal-3.2.0-beta_vc.sym build/polishedcrystal-3.2.0-beta-${{ env.SHORT_SHA }}_vc.sym + mv polishedcrystal-3.2.0_vc.gbc build/polishedcrystal-nightly-${{ env.SHORT_SHA }}_vc.gbc + mv polishedcrystal-3.2.0.patch build/polishedcrystal-nightly-${{ env.SHORT_SHA }}.patch + mv polishedcrystal-3.2.0_vc.sym build/polishedcrystal-nightly-${{ env.SHORT_SHA }}_vc.sym make tidy - id: build-polishedcrystal-faithful-vc name: "Build polishedcrystal-faithful vc" run: | make -j$(nproc) faithful vc - mv polishedcrystal-faithful-3.2.0-beta.gbc build/polishedcrystal-faithful-3.2.0-beta-${{ env.SHORT_SHA }}_vc.gbc - mv polishedcrystal-faithful-3.2.0-beta.patch build/polishedcrystal-faithful-3.2.0-beta-${{ env.SHORT_SHA }}.patch - mv polishedcrystal-faithful-3.2.0-beta.sym build/polishedcrystal-faithful-3.2.0-beta-${{ env.SHORT_SHA }}_vc.sym + mv polishedcrystal-faithful-3.2.0.gbc build/polishedcrystal-faithful-nightly-${{ env.SHORT_SHA }}_vc.gbc + mv polishedcrystal-faithful-3.2.0.patch build/polishedcrystal-faithful-nightly-${{ env.SHORT_SHA }}.patch + mv polishedcrystal-faithful-3.2.0.sym build/polishedcrystal-faithful-nightly-${{ env.SHORT_SHA }}_vc.sym make tidy # BUILD DEBUG ROMS @@ -91,34 +91,34 @@ jobs: name: "Build polisheddebug" run: | make -j$(nproc) debug vc - mv polishedcrystal-debug-3.2.0-beta.gbc build/polishedcrystal-debug-3.2.0-beta-${{ env.SHORT_SHA }}.gbc - mv polishedcrystal-debug-3.2.0-beta.sym build/polishedcrystal-debug-3.2.0-beta-${{ env.SHORT_SHA }}.sym + mv polishedcrystal-debug-3.2.0.gbc build/polishedcrystal-debug-nightly-${{ env.SHORT_SHA }}.gbc + mv polishedcrystal-debug-3.2.0.sym build/polishedcrystal-debug-nightly-${{ env.SHORT_SHA }}.sym make tidy - id: build-polisheddebug-faithful name: "Build polisheddebug-faithful" run: | make -j$(nproc) faithful debug vc - mv polishedcrystal-faithful-debug-3.2.0-beta.gbc build/polishedcrystal-faithful-debug-3.2.0-beta-${{ env.SHORT_SHA }}.gbc - mv polishedcrystal-faithful-debug-3.2.0-beta.sym build/polishedcrystal-faithful-debug-3.2.0-beta-${{ env.SHORT_SHA }}.sym + mv polishedcrystal-faithful-debug-3.2.0.gbc build/polishedcrystal-faithful-debug-nightly-${{ env.SHORT_SHA }}.gbc + mv polishedcrystal-faithful-debug-3.2.0.sym build/polishedcrystal-faithful-debug-nightly-${{ env.SHORT_SHA }}.sym make tidy - id: build-polisheddebug-vc name: "Build polisheddebug vc" run: | make -j$(nproc) debug vc - mv polishedcrystal-debug-3.2.0-beta_vc.gbc build/polishedcrystal-debug-3.2.0-beta-${{ env.SHORT_SHA }}_vc.gbc - mv polishedcrystal-debug-3.2.0-beta.patch build/polishedcrystal-debug-3.2.0-beta-${{ env.SHORT_SHA }}.patch - mv polishedcrystal-debug-3.2.0-beta.sym build/polishedcrystal-debug-3.2.0-beta-${{ env.SHORT_SHA }}_vc.sym + mv polishedcrystal-debug-3.2.0_vc.gbc build/polishedcrystal-debug-nightly-${{ env.SHORT_SHA }}_vc.gbc + mv polishedcrystal-debug-3.2.0.patch build/polishedcrystal-debug-nightly-${{ env.SHORT_SHA }}.patch + mv polishedcrystal-debug-3.2.0_vc.sym build/polishedcrystal-debug-nightly-${{ env.SHORT_SHA }}_vc.sym make tidy - id: build-polisheddebug-faithful-vc name: "Build polisheddebug-faithful vc" run: | make -j$(nproc) faithful debug vc - mv polishedcrystal-faithful-debug-3.2.0-beta_vc.gbc build/polishedcrystal-faithful-debug-3.2.0-beta-${{ env.SHORT_SHA }}_vc.gbc - mv polishedcrystal-faithful-debug-3.2.0-beta.patch build/polishedcrystal-faithful-debug-3.2.0-beta-${{ env.SHORT_SHA }}.patch - mv polishedcrystal-faithful-debug-3.2.0-beta_vc.sym build/polishedcrystal-faithful-debug-3.2.0-beta-${{ env.SHORT_SHA }}_vc.sym + mv polishedcrystal-faithful-debug-3.2.0_vc.gbc build/polishedcrystal-faithful-debug-nightly-${{ env.SHORT_SHA }}_vc.gbc + mv polishedcrystal-faithful-debug-3.2.0.patch build/polishedcrystal-faithful-debug-nightly-${{ env.SHORT_SHA }}.patch + mv polishedcrystal-faithful-debug-3.2.0_vc.sym build/polishedcrystal-faithful-debug-nightly-${{ env.SHORT_SHA }}_vc.sym make tidy # UPLOAD ARTIFACTS – only if the repo is owned by Rangi42 (i.e., not a fork) @@ -130,7 +130,7 @@ jobs: name: "polishedcrystal" retention-days: 1 path: | - build/polishedcrystal-3.2.0-beta-${{ env.SHORT_SHA }}.* + build/polishedcrystal-nightly-${{ env.SHORT_SHA }}.* - id: upload-polishedcrystal-faithful if: ${{ github.repository_owner == 'Rangi42' }} @@ -140,7 +140,7 @@ jobs: name: "polishedcrystal-faithful" retention-days: 1 path: | - build/polishedcrystal-faithful-3.2.0-beta-${{ env.SHORT_SHA }}.* + build/polishedcrystal-faithful-nightly-${{ env.SHORT_SHA }}.* - id: upload-polisheddebug if: ${{ github.repository_owner == 'Rangi42' }} @@ -150,7 +150,7 @@ jobs: name: "polisheddebug" retention-days: 1 path: | - build/polishedcrystal-debug-3.2.0-beta-${{ env.SHORT_SHA }}.* + build/polishedcrystal-debug-nightly-${{ env.SHORT_SHA }}.* - id: upload-polisheddebug-faithful if: ${{ github.repository_owner == 'Rangi42' }} @@ -160,4 +160,4 @@ jobs: name: "polisheddebug-faithful" retention-days: 1 path: | - build/polishedcrystal-faithful-debug-3.2.0-beta-${{ env.SHORT_SHA }}.* + build/polishedcrystal-faithful-debug-nightly-${{ env.SHORT_SHA }}.* diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index ba4bcf21b5..bd2061e493 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -11,10 +11,10 @@ on: # - cron: '0 5 * * *' env: - NIGHTLY_TAG: "v3.2.0-beta" - NIGHTLY_NAME: "3.2.0-beta" + NIGHTLY_TAG: "do-not-checkout" + NIGHTLY_NAME: "nightly" NIGHTLY_BODY: | - This is the current Polished Crystal 3.2.0 *beta* release. The assets all have an 8-character "commit hash" at the end to identify the exact code they're built from. + This is the current Polished Crystal nightly release. The assets all have an 8-character commit hash at the end to identify the exact code they're built from. The **.gbc** assets are ROMs. If you just want to play the game, download one (regular, `-faithful` which omits some non-canon changes, or `noir` which is in grayscale) and load it in [BGB](https://bgb.bircd.org/), [mGBA](https://mgba.io/), [Gambatte](https://github.com/sinamas/gambatte), or another accurate Game Boy Color emulator. (***Do not use VBA*** or VBA-M.) @@ -83,7 +83,7 @@ jobs: name: "polisheddebug-faithful" path: "./build" - # DELETE OLD RELEASE + # DELETE OLD RELEASE (if any) - name: Delete old release id: delete_release uses: cb80/delrel@latest @@ -107,16 +107,16 @@ jobs: draft: false prerelease: true - # UPLOAD POLISHED CRYSTAL ASSETS + # UPLOAD REGULAR ASSETS - name: Upload regular assets id: upload uses: softprops/action-gh-release@v1 with: tag_name: ${{ env.NIGHTLY_TAG }} files: | - ./build/polishedcrystal-3.2.0-beta-${{ env.SHORT_SHA }}.gbc - ./build/polishedcrystal-3.2.0-beta-${{ env.SHORT_SHA }}.patch - ./build/polishedcrystal-3.2.0-beta-${{ env.SHORT_SHA }}.sym + ./build/polishedcrystal-nightly-${{ env.SHORT_SHA }}.gbc + ./build/polishedcrystal-nightly-${{ env.SHORT_SHA }}.patch + ./build/polishedcrystal-nightly-${{ env.SHORT_SHA }}.sym # UPLOAD FAITHFUL ASSETS - name: Upload faithful assets @@ -125,9 +125,9 @@ jobs: with: tag_name: ${{ env.NIGHTLY_TAG }} files: | - ./build/polishedcrystal-faithful-3.2.0-beta-${{ env.SHORT_SHA }}.gbc - ./build/polishedcrystal-faithful-3.2.0-beta-${{ env.SHORT_SHA }}.patch - ./build/polishedcrystal-faithful-3.2.0-beta-${{ env.SHORT_SHA }}.sym + ./build/polishedcrystal-faithful-nightly-${{ env.SHORT_SHA }}.gbc + ./build/polishedcrystal-faithful-nightly-${{ env.SHORT_SHA }}.patch + ./build/polishedcrystal-faithful-nightly-${{ env.SHORT_SHA }}.sym # UPLOAD DEBUG ASSETS - name: Upload debug assets @@ -136,9 +136,9 @@ jobs: with: tag_name: ${{ env.NIGHTLY_TAG }} files: | - ./build/polishedcrystal-debug-3.2.0-beta-${{ env.SHORT_SHA }}.gbc - ./build/polishedcrystal-debug-3.2.0-beta-${{ env.SHORT_SHA }}.patch - ./build/polishedcrystal-debug-3.2.0-beta-${{ env.SHORT_SHA }}.sym + ./build/polishedcrystal-debug-nightly-${{ env.SHORT_SHA }}.gbc + ./build/polishedcrystal-debug-nightly-${{ env.SHORT_SHA }}.patch + ./build/polishedcrystal-debug-nightly-${{ env.SHORT_SHA }}.sym # UPLOAD FAITHFUL DEBUG ASSETS - name: Upload faithful debug assets @@ -147,6 +147,6 @@ jobs: with: tag_name: ${{ env.NIGHTLY_TAG }} files: | - ./build/polishedcrystal-faithful-debug-3.2.0-beta-${{ env.SHORT_SHA }}.gbc - ./build/polishedcrystal-faithful-debug-3.2.0-beta-${{ env.SHORT_SHA }}.patch - ./build/polishedcrystal-faithful-debug-3.2.0-beta-${{ env.SHORT_SHA }}.sym + ./build/polishedcrystal-faithful-debug-nightly-${{ env.SHORT_SHA }}.gbc + ./build/polishedcrystal-faithful-debug-nightly-${{ env.SHORT_SHA }}.patch + ./build/polishedcrystal-faithful-debug-nightly-${{ env.SHORT_SHA }}.sym diff --git a/Makefile b/Makefile index 7affeb441f..f973b0cd97 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ NAME := polishedcrystal MODIFIERS := -VERSION := 3.2.0-beta +VERSION := 3.2.0 ROM_NAME = $(NAME)$(MODIFIERS)-$(VERSION) EXTENSION := gbc