Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vulcandth committed Feb 10, 2025
1 parent 1155f16 commit 3913d79
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 42 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,70 +55,70 @@ 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
- id: build-polishedcrystal-vc
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
- id: build-polisheddebug
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)
Expand All @@ -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' }}
Expand All @@ -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' }}
Expand All @@ -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' }}
Expand All @@ -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 }}.*
34 changes: 17 additions & 17 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.)
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
NAME := polishedcrystal
MODIFIERS :=
VERSION := 3.2.0-beta
VERSION := 3.2.0

ROM_NAME = $(NAME)$(MODIFIERS)-$(VERSION)
EXTENSION := gbc
Expand Down

0 comments on commit 3913d79

Please sign in to comment.