Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
vulcandth authored Feb 2, 2025
2 parents a9c0544 + b104ad2 commit e75b3c3
Show file tree
Hide file tree
Showing 530 changed files with 9,089 additions and 2,425 deletions.
164 changes: 56 additions & 108 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_call:

env:
RGBDS_VERSION: "v0.8.0"
RGBDS_VERSION: "v0.9.0"

jobs:
build-ubuntu:
Expand All @@ -26,190 +26,138 @@ jobs:
name: "Install build dependencies"
run: |
sudo apt-get update
sudo apt-get install bison gcc git make -y;
sudo apt-get install bison gcc git make libpng-dev -y;
# CHECKOUT RGBDS
- id: checkout-rgbds
name: "Checkout gbdev/rgbds"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: rgbds
ref: ${{ env.RGBDS_VERSION }}
repository: gbdev/rgbds

# INSTALL RGBDS
- id: install-rgbds
name: "Install gbdev/rgbds"
working-directory: rgbds
run: |
sudo make install
# CHECKOUT REPOSITORY
- id: checkout-polishedcrystal
name: "Checkout Rangi42/polishedcrystal"
uses: actions/checkout@v3
uses: actions/checkout@v4

# BUILD ROMS
- id: build-polishedcrystal
name: "Build polishedcrystal"
run: |
make -j$(nproc) vc
make -j$(nproc)
mkdir build
mv polishedcrystal-3.0.0-beta.gbc build/polishedcrystal-3.0.0-beta-${{ env.SHORT_SHA }}.gbc
mv polishedcrystal-3.0.0-beta.patch build/polishedcrystal-3.0.0-beta-${{ env.SHORT_SHA }}.patch
mv polishedcrystal-3.0.0-beta.sym build/polishedcrystal-3.0.0-beta-${{ env.SHORT_SHA }}.sym
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
make tidy
- id: build-polishedcrystal-faithful
name: "Build polishedcrystal-faithful"
run: |
make -j$(nproc) faithful vc
mv polishedcrystal-3.0.0-beta.gbc build/polishedcrystal-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.gbc
mv polishedcrystal-3.0.0-beta.patch build/polishedcrystal-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.patch
mv polishedcrystal-3.0.0-beta.sym build/polishedcrystal-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.sym
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
make tidy
- id: build-polishedcrystal-nortc
name: "Build polishedcrystal-nortc"
# BUILD VC PATCHES
- id: build-polishedcrystal-vc
name: "Build polishedcrystal vc"
run: |
make -j$(nproc) nortc vc
mv polishedcrystal-3.0.0-beta.gbc build/polishedcrystal-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc
mv polishedcrystal-3.0.0-beta.patch build/polishedcrystal-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.patch
mv polishedcrystal-3.0.0-beta.sym build/polishedcrystal-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym
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
make tidy
- id: build-polishedcrystal-faithful-nortc
name: "Build polishedcrystal-faithful-nortc"
- id: build-polishedcrystal-faithful-vc
name: "Build polishedcrystal-faithful vc"
run: |
make -j$(nproc) faithful nortc vc
mv polishedcrystal-3.0.0-beta.gbc build/polishedcrystal-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc
mv polishedcrystal-3.0.0-beta.patch build/polishedcrystal-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.patch
mv polishedcrystal-3.0.0-beta.sym build/polishedcrystal-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym
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
make tidy
# BUILD DEBUG ROMS
- id: build-polisheddebug
name: "Build polisheddebug"
run: |
make -j$(nproc) debug vc
mv polishedcrystal-3.0.0-beta.gbc build/polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.gbc
mv polishedcrystal-3.0.0-beta.patch build/polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.patch
mv polishedcrystal-3.0.0-beta.sym build/polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.sym
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
make tidy
- id: build-polisheddebug-faithful
name: "Build polisheddebug-faithful"
run: |
make -j$(nproc) faithful debug vc
mv polishedcrystal-3.0.0-beta.gbc build/polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.gbc
mv polishedcrystal-3.0.0-beta.patch build/polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.patch
mv polishedcrystal-3.0.0-beta.sym build/polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.sym
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
make tidy
- id: build-polisheddebug-nortc
name: "Build polisheddebug-nortc"
- id: build-polisheddebug-vc
name: "Build polisheddebug vc"
run: |
make -j$(nproc) nortc debug vc
mv polishedcrystal-3.0.0-beta.gbc build/polisheddebug-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc
mv polishedcrystal-3.0.0-beta.patch build/polisheddebug-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.patch
mv polishedcrystal-3.0.0-beta.sym build/polisheddebug-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym
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
make tidy
- id: build-polisheddebug-faithful-nortc
name: "Build polisheddebug-faithful-nortc"
- id: build-polisheddebug-faithful-vc
name: "Build polisheddebug-faithful vc"
run: |
make -j$(nproc) faithful nortc debug vc
mv polishedcrystal-3.0.0-beta.gbc build/polisheddebug-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc
mv polishedcrystal-3.0.0-beta.patch build/polisheddebug-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.patch
mv polishedcrystal-3.0.0-beta.sym build/polisheddebug-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym
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
make tidy
# BUILD SAVE PATCH
- id: build-polishedcrystal-bsp
name: "Build polishedcrystal-savepatch"
run: |
make -j$(nproc) bsp
mv polishedcrystal-3.0.0-beta.bsp build/polishedcrystal-savepatch-3.0.0-beta-${{ env.SHORT_SHA }}.bsp
make tidy
# UPLOAD ARTIFACTS
# UPLOAD ARTIFACTS – only if the repo is owned by Rangi42 (i.e., not a fork)
- id: upload-polishedcrystal
if: ${{ github.repository_owner == 'Rangi42' }}
name: "Upload polishedcrystal artifacts"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "polishedcrystal"
retention-days: 1
path: |
build/polishedcrystal-3.0.0-beta-${{ env.SHORT_SHA }}.*
build/polishedcrystal-3.2.0-beta-${{ env.SHORT_SHA }}.*
- id: upload-polishedcrystal-faithful
if: ${{ github.repository_owner == 'Rangi42' }}
name: "Upload polishedcrystal-faithful artifacts"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "polishedcrystal-faithful"
retention-days: 1
path: |
build/polishedcrystal-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.*
- id: upload-polishedcrystal-nortc
name: "Upload polishedcrystal-nortc artifacts"
uses: actions/upload-artifact@v3
with:
name: "polishedcrystal-nortc"
retention-days: 1
path: |
build/polishedcrystal-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.*
- id: upload-polishedcrystal-faithful-nortc
name: "Upload polishedcrystal-faithful-nortc artifacts"
uses: actions/upload-artifact@v3
with:
name: "polishedcrystal-faithful-nortc"
retention-days: 1
path: |
build/polishedcrystal-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.*
build/polishedcrystal-faithful-3.2.0-beta-${{ env.SHORT_SHA }}.*
- id: upload-polisheddebug
if: ${{ github.repository_owner == 'Rangi42' }}
name: "Upload polisheddebug artifacts"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "polisheddebug"
retention-days: 1
path: |
build/polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.*
build/polishedcrystal-debug-3.2.0-beta-${{ env.SHORT_SHA }}.*
- id: upload-polisheddebug-faithful
if: ${{ github.repository_owner == 'Rangi42' }}
name: "Upload polisheddebug-faithful artifacts"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "polisheddebug-faithful"
retention-days: 1
path: |
build/polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.*
- id: upload-polisheddebug-nortc
name: "Upload polisheddebug-nortc artifacts"
uses: actions/upload-artifact@v3
with:
name: "polisheddebug-nortc"
retention-days: 1
path: |
build/polisheddebug-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.*
- id: upload-polisheddebug-faithful-nortc
name: "Upload polisheddebug-faithful-nortc artifacts"
uses: actions/upload-artifact@v3
with:
name: "polisheddebug-faithful-nortc"
retention-days: 1
path: |
build/polisheddebug-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.*
- id: upload-polishedcrystal-savepatch
name: "Upload polishedcrystal savepatch"
uses: actions/upload-artifact@v3
with:
name: "polishedcrystal-savepatch"
retention-days: 1
path: |
build/polishedcrystal-savepatch-3.0.0-beta-${{ env.SHORT_SHA }}.*
build/polishedcrystal-faithful-debug-3.2.0-beta-${{ env.SHORT_SHA }}.*
Loading

0 comments on commit e75b3c3

Please sign in to comment.