Summary screen #36
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Continuous Integration Workflow | |
name: "CI Build" | |
on: | |
pull_request: | |
branches: | |
- master | |
workflow_call: | |
env: | |
RGBDS_VERSION: "v0.9.0" | |
jobs: | |
build-ubuntu: | |
name: "Build" | |
runs-on: ubuntu-latest | |
steps: | |
# SET ENVIRONMENT VARIABLES | |
- id: set-env-var | |
name: "Set environment variables" | |
run: | | |
echo "SHORT_SHA=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_ENV | |
# INSTALL DEPENDENCIES | |
- id: apt-get-depends | |
name: "Install build dependencies" | |
run: | | |
sudo apt-get update | |
sudo apt-get install bison gcc git make libpng-dev -y; | |
# CHECKOUT RGBDS | |
- id: checkout-rgbds | |
name: "Checkout gbdev/rgbds" | |
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@v4 | |
# BUILD ROMS | |
- id: build-polishedcrystal | |
name: "Build polishedcrystal" | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
make tidy | |
# 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@v4 | |
with: | |
name: "polishedcrystal" | |
retention-days: 1 | |
path: | | |
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@v4 | |
with: | |
name: "polishedcrystal-faithful" | |
retention-days: 1 | |
path: | | |
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@v4 | |
with: | |
name: "polisheddebug" | |
retention-days: 1 | |
path: | | |
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@v4 | |
with: | |
name: "polisheddebug-faithful" | |
retention-days: 1 | |
path: | | |
build/polishedcrystal-faithful-debug-3.2.0-beta-${{ env.SHORT_SHA }}.* |