From 31f0e2c7932031d0e8d0a77452be921a9e0a074d Mon Sep 17 00:00:00 2001 From: The Void <9028176+etdv-thevoid@users.noreply.github.com> Date: Tue, 16 May 2023 21:08:01 -0500 Subject: [PATCH 1/6] Workflow overhaul (#719) * Create build.yml * Create nightly.yml * Update nightly.yml * Update build.yml * Update build.yml * Update nightly.yml * Update build.yml * Update nightly.yml * Update build.yml * Update nightly.yml * Update build.yml * Update nightly.yml * Minor clean up & enable noRTC build * switch to "latest" and ul/dl artifacts * version number instead, they don't utilize "latest" * remove 9bit specific vc build parameter * Important to actually make the dir first * don't popd either * Update build.yml --- .github/workflows/build.yml | 206 +++++++++++++++++++++ .github/workflows/main.yml | 326 +++++++++++++++++----------------- .github/workflows/nightly.yml | 294 ++++++++++++++++++++++++++++++ 3 files changed, 663 insertions(+), 163 deletions(-) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/nightly.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000..38593b218c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,206 @@ +# Continuous Integration Workflow +name: "CI Build" + +on: + pull_request: + branches: + - master + workflow_call: + +env: + RGBDS_VERSION: "v0.5.2" + +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 install bison gcc git make python -y; + + # CHECKOUT RGBDS + - id: checkout-rgbds + name: "Checkout gbdev/rgbds" + uses: actions/checkout@v3 + 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 + + # BUILD ROMS + - id: build-polishedcrystal + name: "Build polishedcrystal" + run: | + 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.sym build/polishedcrystal-3.0.0-beta-${{ env.SHORT_SHA }}.sym + make tidy + + - id: build-polishedcrystal-faithful + name: "Build polishedcrystal-faithful" + run: | + make -j$(nproc) faithful + mv polishedcrystal-3.0.0-beta.gbc build/polishedcrystal-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + mv polishedcrystal-3.0.0-beta.sym build/polishedcrystal-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.sym + make tidy + + - id: build-polishedcrystal-nortc + name: "Build polishedcrystal-nortc" + run: | + make -j$(nproc) nortc + mv polishedcrystal-3.0.0-beta.gbc build/polishedcrystal-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + mv polishedcrystal-3.0.0-beta.sym build/polishedcrystal-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym + make tidy + + - id: build-polishedcrystal-faithful-nortc + name: "Build polishedcrystal-faithful-nortc" + run: | + make -j$(nproc) faithful nortc + 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.sym build/polishedcrystal-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym + make tidy + + # BUILD DEBUG ROMS + - id: build-polisheddebug + name: "Build polisheddebug" + run: | + make -j$(nproc) debug + mv polishedcrystal-3.0.0-beta.gbc build/polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + mv polishedcrystal-3.0.0-beta.sym build/polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.sym + make tidy + + - id: build-polisheddebug-faithful + name: "Build polisheddebug-faithful" + run: | + make -j$(nproc) faithful debug + mv polishedcrystal-3.0.0-beta.gbc build/polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + mv polishedcrystal-3.0.0-beta.sym build/polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.sym + make tidy + + - id: build-polisheddebug-nortc + name: "Build polisheddebug-nortc" + run: | + make -j$(nproc) nortc debug + mv polishedcrystal-3.0.0-beta.gbc build/polisheddebug-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + mv polishedcrystal-3.0.0-beta.sym build/polisheddebug-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym + make tidy + + - id: build-polisheddebug-faithful-nortc + name: "Build polisheddebug-faithful-nortc" + run: | + make -j$(nproc) faithful nortc debug + 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.sym build/polisheddebug-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.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 + - id: upload-polishedcrystal + name: "Upload polishedcrystal artifacts" + uses: actions/upload-artifact@v3 + with: + name: "polishedcrystal" + retention-days: 1 + path: | + build/polishedcrystal-3.0.0-beta-${{ env.SHORT_SHA }}.* + + - id: upload-polishedcrystal-faithful + name: "Upload polishedcrystal-faithful artifacts" + uses: actions/upload-artifact@v3 + 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 }}.* + + - id: upload-polisheddebug + name: "Upload polisheddebug artifacts" + uses: actions/upload-artifact@v3 + with: + name: "polisheddebug" + retention-days: 1 + path: | + build/polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.* + + - id: upload-polisheddebug-faithful + name: "Upload polisheddebug-faithful artifacts" + uses: actions/upload-artifact@v3 + 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 }}.* diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5ab349a811..f3c9689e06 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,169 +1,169 @@ -name: Nightly build +# name: Nightly build -on: - push: - branches: - - 'master' +# on: +# push: +# branches: +# - 'master' -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Set environment variables - run: echo "SHORT_SHA=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_ENV - - name: Install dependencies - run: | - sudo apt-get install make python gcc git bison - git clone -b v0.5.2 --depth=1 https://github.com/gbdev/rgbds - pushd rgbds - sudo make install - popd - - name: Build Rangi42/polishedcrystal - run: | - git clone https://github.com/Rangi42/polishedcrystal.git - pushd polishedcrystal - mkdir build - make -j4 - mv polishedcrystal-3.0.0-beta.gbc build/polishedcrystal-3.0.0-beta.gbc - mv polishedcrystal-3.0.0-beta.sym build/polishedcrystal-3.0.0-beta.sym - make tidy - make -j4 faithful - mv polishedcrystal-3.0.0-beta.gbc build/polishedcrystal-faithful-3.0.0-beta.gbc - mv polishedcrystal-3.0.0-beta.sym build/polishedcrystal-faithful-3.0.0-beta.sym - make tidy - make -j4 debug - mv polishedcrystal-3.0.0-beta.gbc build/polisheddebug-3.0.0-beta.gbc - mv polishedcrystal-3.0.0-beta.sym build/polisheddebug-3.0.0-beta.sym - make tidy - make -j4 faithful debug - mv polishedcrystal-3.0.0-beta.gbc build/polisheddebug-faithful-3.0.0-beta.gbc - mv polishedcrystal-3.0.0-beta.sym build/polisheddebug-faithful-3.0.0-beta.sym - make tidy - make bsp - mv polishedcrystal-3.0.0-beta.bsp build/polishedcrystal-savepatch-3.0.0-beta.bsp - popd - - name: Delete old release - id: delete_release - uses: jagger27/delete-release@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: v3.0.0-beta-nightly - - name: Advance nightly tag to master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - pushd polishedcrystal - git tag v3.0.0-beta-nightly -f - git push --tags -f "https://Rangi42:$GITHUB_TOKEN@github.com/Rangi42/polishedcrystal.git" - popd - - name: Create new release - id: create_release - uses: actions/create-release@v1.1.4 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: v3.0.0-beta-nightly - release_name: 3.0.0 beta nightly - body: | - This is the current Polished Crystal 3.0.0 *beta* release. The assets all have an 8-character "commit hash" at the end to identify the exact code they're built from. +# jobs: +# build: +# runs-on: ubuntu-latest +# steps: +# - name: Set environment variables +# run: echo "SHORT_SHA=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_ENV +# - name: Install dependencies +# run: | +# sudo apt-get install make python gcc git bison +# git clone -b v0.5.2 --depth=1 https://github.com/gbdev/rgbds +# pushd rgbds +# sudo make install +# popd +# - name: Build Rangi42/polishedcrystal +# run: | +# git clone https://github.com/Rangi42/polishedcrystal.git +# pushd polishedcrystal +# mkdir build +# make -j4 +# mv polishedcrystal-3.0.0-beta.gbc build/polishedcrystal-3.0.0-beta.gbc +# mv polishedcrystal-3.0.0-beta.sym build/polishedcrystal-3.0.0-beta.sym +# make tidy +# make -j4 faithful +# mv polishedcrystal-3.0.0-beta.gbc build/polishedcrystal-faithful-3.0.0-beta.gbc +# mv polishedcrystal-3.0.0-beta.sym build/polishedcrystal-faithful-3.0.0-beta.sym +# make tidy +# make -j4 debug +# mv polishedcrystal-3.0.0-beta.gbc build/polisheddebug-3.0.0-beta.gbc +# mv polishedcrystal-3.0.0-beta.sym build/polisheddebug-3.0.0-beta.sym +# make tidy +# make -j4 faithful debug +# mv polishedcrystal-3.0.0-beta.gbc build/polisheddebug-faithful-3.0.0-beta.gbc +# mv polishedcrystal-3.0.0-beta.sym build/polisheddebug-faithful-3.0.0-beta.sym +# make tidy +# make bsp +# mv polishedcrystal-3.0.0-beta.bsp build/polishedcrystal-savepatch-3.0.0-beta.bsp +# popd +# - name: Delete old release +# id: delete_release +# uses: jagger27/delete-release@master +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# tag_name: v3.0.0-beta-nightly +# - name: Advance nightly tag to master +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# run: | +# pushd polishedcrystal +# git tag v3.0.0-beta-nightly -f +# git push --tags -f "https://Rangi42:$GITHUB_TOKEN@github.com/Rangi42/polishedcrystal.git" +# popd +# - name: Create new release +# id: create_release +# uses: actions/create-release@v1.1.4 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# tag_name: v3.0.0-beta-nightly +# release_name: 3.0.0 beta nightly +# body: | +# This is the current Polished Crystal 3.0.0 *beta* 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 or `-faithful`) 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.) +# The **.gbc** assets are ROMs. If you just want to play the game, download one (regular or `-faithful`) 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.) - The **.sym** assets are "symbol files". They're useful for debugging, or for [discovering cheat codes](https://github.com/pret/pokecrystal/wiki/Discovering-GameShark-cheat-codes), although cheats are *not* officially supported and may cause bugs or crashes. (Do ***not*** ask the developers for cheat codes.) +# The **.sym** assets are "symbol files". They're useful for debugging, or for [discovering cheat codes](https://github.com/pret/pokecrystal/wiki/Discovering-GameShark-cheat-codes), although cheats are *not* officially supported and may cause bugs or crashes. (Do ***not*** ask the developers for cheat codes.) - The **.bsp** asset is a [BSP](https://github.com/aaaaaa123456789/bsp) save file patch in case you need to upgrade a save file from an older 3.0.0 beta build, using a patcher like the one for [Pokémon Prism](http://pokemonprism.com/patcher.html). +# The **.bsp** asset is a [BSP](https://github.com/aaaaaa123456789/bsp) save file patch in case you need to upgrade a save file from an older 3.0.0 beta build, using a patcher like the one for [Pokémon Prism](http://pokemonprism.com/patcher.html). - The **polisheddebug** assets are ROMs and symbol files with extra features to help debug the game. Do ***not*** download these to just play with; use them to help the developers diagnose and fix bugs, or create new features. - draft: false - prerelease: true - - name: Upload ROM - id: upload - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polishedcrystal/build/polishedcrystal-3.0.0-beta.gbc - asset_name: polishedcrystal-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - asset_content_type: application/octet-stream - - name: Upload SYM - id: upload-sym - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polishedcrystal/build/polishedcrystal-3.0.0-beta.sym - asset_name: polishedcrystal-3.0.0-beta-${{ env.SHORT_SHA }}.sym - asset_content_type: text/plain - - name: Upload faithful ROM - id: upload-faithful - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polishedcrystal/build/polishedcrystal-faithful-3.0.0-beta.gbc - asset_name: polishedcrystal-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - asset_content_type: application/octet-stream - - name: Upload faithful SYM - id: upload-faithful-sym - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polishedcrystal/build/polishedcrystal-faithful-3.0.0-beta.sym - asset_name: polishedcrystal-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.sym - asset_content_type: text/plain - - name: Upload debug ROM - id: upload-debug - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polishedcrystal/build/polisheddebug-3.0.0-beta.gbc - asset_name: polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - asset_content_type: application/octet-stream - - name: Upload debug SYM - id: upload-debug-sym - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polishedcrystal/build/polisheddebug-3.0.0-beta.sym - asset_name: polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.sym - asset_content_type: text/plain - - name: Upload faithful debug ROM - id: upload-faithful-debug - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polishedcrystal/build/polisheddebug-faithful-3.0.0-beta.gbc - asset_name: polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - asset_content_type: application/octet-stream - - name: Upload faithful debug SYM - id: upload-faithful-debug-sym - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polishedcrystal/build/polisheddebug-faithful-3.0.0-beta.sym - asset_name: polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.sym - asset_content_type: text/plain - - name: Upload BSP - id: upload-bsp - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polishedcrystal/build/polishedcrystal-savepatch-3.0.0-beta.bsp - asset_name: polishedcrystal-savepatch-3.0.0-beta-${{ env.SHORT_SHA }}.bsp - asset_content_type: application/octet-stream +# The **polisheddebug** assets are ROMs and symbol files with extra features to help debug the game. Do ***not*** download these to just play with; use them to help the developers diagnose and fix bugs, or create new features. +# draft: false +# prerelease: true +# - name: Upload ROM +# id: upload +# uses: actions/upload-release-asset@v1.0.1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# upload_url: ${{ steps.create_release.outputs.upload_url }} +# asset_path: ./polishedcrystal/build/polishedcrystal-3.0.0-beta.gbc +# asset_name: polishedcrystal-3.0.0-beta-${{ env.SHORT_SHA }}.gbc +# asset_content_type: application/octet-stream +# - name: Upload SYM +# id: upload-sym +# uses: actions/upload-release-asset@v1.0.1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# upload_url: ${{ steps.create_release.outputs.upload_url }} +# asset_path: ./polishedcrystal/build/polishedcrystal-3.0.0-beta.sym +# asset_name: polishedcrystal-3.0.0-beta-${{ env.SHORT_SHA }}.sym +# asset_content_type: text/plain +# - name: Upload faithful ROM +# id: upload-faithful +# uses: actions/upload-release-asset@v1.0.1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# upload_url: ${{ steps.create_release.outputs.upload_url }} +# asset_path: ./polishedcrystal/build/polishedcrystal-faithful-3.0.0-beta.gbc +# asset_name: polishedcrystal-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.gbc +# asset_content_type: application/octet-stream +# - name: Upload faithful SYM +# id: upload-faithful-sym +# uses: actions/upload-release-asset@v1.0.1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# upload_url: ${{ steps.create_release.outputs.upload_url }} +# asset_path: ./polishedcrystal/build/polishedcrystal-faithful-3.0.0-beta.sym +# asset_name: polishedcrystal-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.sym +# asset_content_type: text/plain +# - name: Upload debug ROM +# id: upload-debug +# uses: actions/upload-release-asset@v1.0.1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# upload_url: ${{ steps.create_release.outputs.upload_url }} +# asset_path: ./polishedcrystal/build/polisheddebug-3.0.0-beta.gbc +# asset_name: polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.gbc +# asset_content_type: application/octet-stream +# - name: Upload debug SYM +# id: upload-debug-sym +# uses: actions/upload-release-asset@v1.0.1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# upload_url: ${{ steps.create_release.outputs.upload_url }} +# asset_path: ./polishedcrystal/build/polisheddebug-3.0.0-beta.sym +# asset_name: polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.sym +# asset_content_type: text/plain +# - name: Upload faithful debug ROM +# id: upload-faithful-debug +# uses: actions/upload-release-asset@v1.0.1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# upload_url: ${{ steps.create_release.outputs.upload_url }} +# asset_path: ./polishedcrystal/build/polisheddebug-faithful-3.0.0-beta.gbc +# asset_name: polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.gbc +# asset_content_type: application/octet-stream +# - name: Upload faithful debug SYM +# id: upload-faithful-debug-sym +# uses: actions/upload-release-asset@v1.0.1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# upload_url: ${{ steps.create_release.outputs.upload_url }} +# asset_path: ./polishedcrystal/build/polisheddebug-faithful-3.0.0-beta.sym +# asset_name: polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.sym +# asset_content_type: text/plain +# - name: Upload BSP +# id: upload-bsp +# uses: actions/upload-release-asset@v1.0.1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# upload_url: ${{ steps.create_release.outputs.upload_url }} +# asset_path: ./polishedcrystal/build/polishedcrystal-savepatch-3.0.0-beta.bsp +# asset_name: polishedcrystal-savepatch-3.0.0-beta-${{ env.SHORT_SHA }}.bsp +# asset_content_type: application/octet-stream diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 0000000000..75941d030e --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,294 @@ +# Nightly Build & Pre-release +name: "Nightly" + +on: + push: + branches: + - master +# schedule: +# - cron: '0 5 * * *' + +env: + NIGHTLY_TAG: "v3.0.0-beta-nightly" + NIGHTLY_NAME: "3.0.0 beta nightly" + NIGHTLY_BODY: | + This is the current Polished Crystal 3.0.0 *beta* 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 or `-faithful`) 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.) + + The **.sym** assets are "symbol files". They're useful for debugging, or for [discovering cheat codes](https://github.com/pret/pokecrystal/wiki/Discovering-GameShark-cheat-codes), although cheats are *not* officially supported and may cause bugs or crashes. (Do ***not*** ask the developers for cheat codes.) + + The **.bsp** asset is a [BSP](https://github.com/aaaaaa123456789/bsp) save file patch in case you need to upgrade a save file from an older 3.0.0 beta build, using a patcher like the one for [Pokémon Prism](http://pokemonprism.com/patcher.html). + + The **polisheddebug** assets are ROMs and symbol files with extra features to help debug the game. Do ***not*** download these to just play with; use them to help the developers diagnose and fix bugs, or create new features. + +jobs: + build: + name: "Nightly" + uses: Rangi42/polishedcrystal/.github/workflows/build.yml@master + release: + name: "Nightly / Release" + runs-on: ubuntu-latest + needs: build + 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 dependencies" + run: | + sudo apt-get install bison gcc git make python -y; + + # CHECKOUT REPOSITORY + - id: checkout-polishedcrystal + name: "Checkout Rangi42/polishedcrystal" + uses: actions/checkout@v3 + + # DOWNLOAD ALL BUILD ARTIFACTS + - id: download-polishedcrystal + name: "Download polishedcrystal" + uses: actions/download-artifact@v3 + with: + name: "polishedcrystal" + - id: download-polishedcrystal-faithful + name: "Download polishedcrystal-faithful" + uses: actions/download-artifact@v3 + with: + name: "polishedcrystal-faithful" + - id: download-polisheddebug + name: "Download polisheddebug" + uses: actions/download-artifact@v3 + with: + name: "polisheddebug" + - id: download-polisheddebug-faithful + name: "Download polisheddebug-faithful" + uses: actions/download-artifact@v3 + with: + name: "polisheddebug-faithful" + - id: download-polishedcrystal-savepatch + name: "Download polishedcrystal-savepatch" + uses: actions/download-artifact@v3 + with: + name: "polishedcrystal-savepatch" + + # DELETE OLD RELEASE + - name: Delete old release + id: delete_release + uses: jagger27/delete-release@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ env.NIGHTLY_TAG }} + - name: Advance nightly tag to master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + pushd polishedcrystal + git tag ${{ env.NIGHTLY_TAG }} -f + git push --tags -f "https://Rangi42:$GITHUB_TOKEN@github.com/Rangi42/polishedcrystal.git" + popd + + # CREATE NEW RELEASE + - name: Create new release + id: create_release + uses: actions/create-release@v1.1.4 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ env.NIGHTLY_TAG }} + release_name: ${{ env.NIGHTLY_NAME }} + body: ${{ env.NIGHTLY_BODY }} + draft: false + prerelease: true + + # UPLOAD POLISHED CRYSTAL ASSETS + - name: Upload ROM + id: upload + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./polishedcrystal/polishedcrystal-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + asset_name: polishedcrystal-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + asset_content_type: application/octet-stream + - name: Upload SYM + id: upload-sym + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./polishedcrystal/polishedcrystal-3.0.0-beta-${{ env.SHORT_SHA }}.sym + asset_name: polishedcrystal-3.0.0-beta-${{ env.SHORT_SHA }}.sym + asset_content_type: text/plain + + # UPLOAD FAITHFUL ASSETS + - name: Upload faithful ROM + id: upload-faithful + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./polishedcrystal-faithful/polishedcrystal-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + asset_name: polishedcrystal-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + asset_content_type: application/octet-stream + - name: Upload faithful SYM + id: upload-faithful-sym + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./polishedcrystal-faithful/polishedcrystal-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.sym + asset_name: polishedcrystal-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.sym + asset_content_type: text/plain + + # UPLOAD NORTC ASSETS + - name: Upload nortc ROM + id: upload-nortc + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./polishedcrystal-nortc/polishedcrystal-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + asset_name: polishedcrystal-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + asset_content_type: application/octet-stream + - name: Upload NoRTC SYM + id: upload-sym-nortc + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./polishedcrystal-nortc/polishedcrystal-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym + asset_name: polishedcrystal-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym + asset_content_type: text/plain + + # UPLOAD FAITHFUL NORTC ASSETS + - name: Upload faithful nortc ROM + id: upload-faithful-nortc + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./polishedcrystal-faithful-nortc/polishedcrystal-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + asset_name: polishedcrystal-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + asset_content_type: application/octet-stream + - name: Upload faithful nortc SYM + id: upload-faithful-nortc-sym + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./polishedcrystal-faithful-nortc/polishedcrystal-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym + asset_name: polishedcrystal-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym + asset_content_type: text/plain + + # UPLOAD DEBUG ASSETS + - name: Upload debug ROM + id: upload-debug + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./polisheddebug/polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + asset_name: polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + asset_content_type: application/octet-stream + - name: Upload debug SYM + id: upload-debug-sym + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./polisheddebug/polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.sym + asset_name: polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.sym + asset_content_type: text/plain + + # UPLOAD FAITHFUL DEBUG ASSETS + - name: Upload faithful debug ROM + id: upload-faithful-debug + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./polisheddebug-faithful/polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + asset_name: polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + asset_content_type: application/octet-stream + - name: Upload faithful debug SYM + id: upload-faithful-debug-sym + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./polisheddebug-faithful/polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.sym + asset_name: polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.sym + asset_content_type: text/plain + + # UPLOAD NORTC DEBUG ASSETS + - name: Upload nortc debug ROM + id: upload-debug-nortc + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./polisheddebug-nortc/polisheddebug-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + asset_name: polisheddebug-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + asset_content_type: application/octet-stream + - name: Upload nortc debug SYM + id: upload-debug-nortc-sym + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./polisheddebug-nortc/polisheddebug-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym + asset_name: polisheddebug-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym + asset_content_type: text/plain + + # UPLOAD FAITHFUL NORTC DEBUG ASSETS + - name: Upload faithful nortc debug ROM + id: upload-faithful-nortc-debug + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./polisheddebug-faithful-nortc/polisheddebug-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + asset_name: polisheddebug-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + asset_content_type: application/octet-stream + - name: Upload faithful nortc debug SYM + id: upload-faithful-nortc-debug-sym + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./polisheddebug-faithful-nortc/polisheddebug-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym + asset_name: polisheddebug-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym + asset_content_type: text/plain + + # UPLOAD SAVE PATCH + - name: Upload BSP + id: upload-bsp + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./polishedcrystal-savepatch/polishedcrystal-savepatch-3.0.0-beta-${{ env.SHORT_SHA }}.bsp + asset_name: polishedcrystal-savepatch-3.0.0-beta-${{ env.SHORT_SHA }}.bsp + asset_content_type: application/octet-stream From a3b5ea9ef346632ae2a0fedee037c63f7828dbdb Mon Sep 17 00:00:00 2001 From: darsh Date: Wed, 17 May 2023 02:47:23 -0400 Subject: [PATCH 2/6] patch merged PR files and use non-deprecated actions --- .github/workflows/build.yml | 4 +- .github/workflows/main.yml | 169 ----------------------- .github/workflows/nightly.yml | 253 ++++++++++++---------------------- 3 files changed, 90 insertions(+), 336 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 38593b218c..0a88d90766 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,7 +25,7 @@ jobs: - id: apt-get-depends name: "Install build dependencies" run: | - sudo apt-get install bison gcc git make python -y; + sudo apt-get install bison gcc git make python2 -y; # CHECKOUT RGBDS - id: checkout-rgbds @@ -45,7 +45,7 @@ jobs: # CHECKOUT REPOSITORY - id: checkout-polishedcrystal - name: "Checkout Rangi42/polishedcrystal" + name: "Checkout itsdarsh/polishedcrystal" uses: actions/checkout@v3 # BUILD ROMS diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index f3c9689e06..0000000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,169 +0,0 @@ -# name: Nightly build - -# on: -# push: -# branches: -# - 'master' - -# jobs: -# build: -# runs-on: ubuntu-latest -# steps: -# - name: Set environment variables -# run: echo "SHORT_SHA=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_ENV -# - name: Install dependencies -# run: | -# sudo apt-get install make python gcc git bison -# git clone -b v0.5.2 --depth=1 https://github.com/gbdev/rgbds -# pushd rgbds -# sudo make install -# popd -# - name: Build Rangi42/polishedcrystal -# run: | -# git clone https://github.com/Rangi42/polishedcrystal.git -# pushd polishedcrystal -# mkdir build -# make -j4 -# mv polishedcrystal-3.0.0-beta.gbc build/polishedcrystal-3.0.0-beta.gbc -# mv polishedcrystal-3.0.0-beta.sym build/polishedcrystal-3.0.0-beta.sym -# make tidy -# make -j4 faithful -# mv polishedcrystal-3.0.0-beta.gbc build/polishedcrystal-faithful-3.0.0-beta.gbc -# mv polishedcrystal-3.0.0-beta.sym build/polishedcrystal-faithful-3.0.0-beta.sym -# make tidy -# make -j4 debug -# mv polishedcrystal-3.0.0-beta.gbc build/polisheddebug-3.0.0-beta.gbc -# mv polishedcrystal-3.0.0-beta.sym build/polisheddebug-3.0.0-beta.sym -# make tidy -# make -j4 faithful debug -# mv polishedcrystal-3.0.0-beta.gbc build/polisheddebug-faithful-3.0.0-beta.gbc -# mv polishedcrystal-3.0.0-beta.sym build/polisheddebug-faithful-3.0.0-beta.sym -# make tidy -# make bsp -# mv polishedcrystal-3.0.0-beta.bsp build/polishedcrystal-savepatch-3.0.0-beta.bsp -# popd -# - name: Delete old release -# id: delete_release -# uses: jagger27/delete-release@master -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# with: -# tag_name: v3.0.0-beta-nightly -# - name: Advance nightly tag to master -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# run: | -# pushd polishedcrystal -# git tag v3.0.0-beta-nightly -f -# git push --tags -f "https://Rangi42:$GITHUB_TOKEN@github.com/Rangi42/polishedcrystal.git" -# popd -# - name: Create new release -# id: create_release -# uses: actions/create-release@v1.1.4 -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# with: -# tag_name: v3.0.0-beta-nightly -# release_name: 3.0.0 beta nightly -# body: | -# This is the current Polished Crystal 3.0.0 *beta* 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 or `-faithful`) 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.) - -# The **.sym** assets are "symbol files". They're useful for debugging, or for [discovering cheat codes](https://github.com/pret/pokecrystal/wiki/Discovering-GameShark-cheat-codes), although cheats are *not* officially supported and may cause bugs or crashes. (Do ***not*** ask the developers for cheat codes.) - -# The **.bsp** asset is a [BSP](https://github.com/aaaaaa123456789/bsp) save file patch in case you need to upgrade a save file from an older 3.0.0 beta build, using a patcher like the one for [Pokémon Prism](http://pokemonprism.com/patcher.html). - -# The **polisheddebug** assets are ROMs and symbol files with extra features to help debug the game. Do ***not*** download these to just play with; use them to help the developers diagnose and fix bugs, or create new features. -# draft: false -# prerelease: true -# - name: Upload ROM -# id: upload -# uses: actions/upload-release-asset@v1.0.1 -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# with: -# upload_url: ${{ steps.create_release.outputs.upload_url }} -# asset_path: ./polishedcrystal/build/polishedcrystal-3.0.0-beta.gbc -# asset_name: polishedcrystal-3.0.0-beta-${{ env.SHORT_SHA }}.gbc -# asset_content_type: application/octet-stream -# - name: Upload SYM -# id: upload-sym -# uses: actions/upload-release-asset@v1.0.1 -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# with: -# upload_url: ${{ steps.create_release.outputs.upload_url }} -# asset_path: ./polishedcrystal/build/polishedcrystal-3.0.0-beta.sym -# asset_name: polishedcrystal-3.0.0-beta-${{ env.SHORT_SHA }}.sym -# asset_content_type: text/plain -# - name: Upload faithful ROM -# id: upload-faithful -# uses: actions/upload-release-asset@v1.0.1 -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# with: -# upload_url: ${{ steps.create_release.outputs.upload_url }} -# asset_path: ./polishedcrystal/build/polishedcrystal-faithful-3.0.0-beta.gbc -# asset_name: polishedcrystal-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.gbc -# asset_content_type: application/octet-stream -# - name: Upload faithful SYM -# id: upload-faithful-sym -# uses: actions/upload-release-asset@v1.0.1 -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# with: -# upload_url: ${{ steps.create_release.outputs.upload_url }} -# asset_path: ./polishedcrystal/build/polishedcrystal-faithful-3.0.0-beta.sym -# asset_name: polishedcrystal-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.sym -# asset_content_type: text/plain -# - name: Upload debug ROM -# id: upload-debug -# uses: actions/upload-release-asset@v1.0.1 -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# with: -# upload_url: ${{ steps.create_release.outputs.upload_url }} -# asset_path: ./polishedcrystal/build/polisheddebug-3.0.0-beta.gbc -# asset_name: polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.gbc -# asset_content_type: application/octet-stream -# - name: Upload debug SYM -# id: upload-debug-sym -# uses: actions/upload-release-asset@v1.0.1 -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# with: -# upload_url: ${{ steps.create_release.outputs.upload_url }} -# asset_path: ./polishedcrystal/build/polisheddebug-3.0.0-beta.sym -# asset_name: polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.sym -# asset_content_type: text/plain -# - name: Upload faithful debug ROM -# id: upload-faithful-debug -# uses: actions/upload-release-asset@v1.0.1 -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# with: -# upload_url: ${{ steps.create_release.outputs.upload_url }} -# asset_path: ./polishedcrystal/build/polisheddebug-faithful-3.0.0-beta.gbc -# asset_name: polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.gbc -# asset_content_type: application/octet-stream -# - name: Upload faithful debug SYM -# id: upload-faithful-debug-sym -# uses: actions/upload-release-asset@v1.0.1 -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# with: -# upload_url: ${{ steps.create_release.outputs.upload_url }} -# asset_path: ./polishedcrystal/build/polisheddebug-faithful-3.0.0-beta.sym -# asset_name: polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.sym -# asset_content_type: text/plain -# - name: Upload BSP -# id: upload-bsp -# uses: actions/upload-release-asset@v1.0.1 -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# with: -# upload_url: ${{ steps.create_release.outputs.upload_url }} -# asset_path: ./polishedcrystal/build/polishedcrystal-savepatch-3.0.0-beta.bsp -# asset_name: polishedcrystal-savepatch-3.0.0-beta-${{ env.SHORT_SHA }}.bsp -# asset_content_type: application/octet-stream diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 75941d030e..8cd88ad75a 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -14,7 +14,7 @@ env: NIGHTLY_BODY: | This is the current Polished Crystal 3.0.0 *beta* 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 or `-faithful`) 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.) + The **.gbc** assets are ROMs. If you just want to play the game, download one (regular or `-faithful`) 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.) If your emulator or flashcart has issues with supporting a real time clock (or you desire it disabled for any other reason), download your preferred version with the `-nortc` flag. The **.sym** assets are "symbol files". They're useful for debugging, or for [discovering cheat codes](https://github.com/pret/pokecrystal/wiki/Discovering-GameShark-cheat-codes), although cheats are *not* officially supported and may cause bugs or crashes. (Do ***not*** ask the developers for cheat codes.) @@ -41,7 +41,7 @@ jobs: - id: apt-get-depends name: "Install dependencies" run: | - sudo apt-get install bison gcc git make python -y; + sudo apt-get install bison gcc git make python2 -y; # CHECKOUT REPOSITORY - id: checkout-polishedcrystal @@ -54,241 +54,164 @@ jobs: uses: actions/download-artifact@v3 with: name: "polishedcrystal" + path: "./build" - id: download-polishedcrystal-faithful name: "Download polishedcrystal-faithful" uses: actions/download-artifact@v3 with: name: "polishedcrystal-faithful" + path: "./build" + - id: download-polishedcrystal-nortc + name: "Download polishedcrystal-nortc" + uses: actions/download-artifact@v3 + with: + name: "polishedcrystal-nortc" + path: "./build" + - id: download-polishedcrystal-faithful-nortc + name: "Download polishedcrystal-faithful-nortc" + uses: actions/download-artifact@v3 + with: + name: "polishedcrystal-faithful-nortc" + path: "./build" - id: download-polisheddebug name: "Download polisheddebug" uses: actions/download-artifact@v3 with: name: "polisheddebug" + path: "./build" - id: download-polisheddebug-faithful name: "Download polisheddebug-faithful" uses: actions/download-artifact@v3 with: name: "polisheddebug-faithful" + path: "./build" + - id: download-polisheddebug-nortc + name: "Download polisheddebug-nortc" + uses: actions/download-artifact@v3 + with: + name: "polisheddebug-nortc" + path: "./build" + - id: download-polisheddebug-faithful-nortc + name: "Download polisheddebug-faithful-nortc" + uses: actions/download-artifact@v3 + with: + name: "polisheddebug-faithful-nortc" + path: "./build" - id: download-polishedcrystal-savepatch name: "Download polishedcrystal-savepatch" uses: actions/download-artifact@v3 with: name: "polishedcrystal-savepatch" + path: "./build" # DELETE OLD RELEASE - name: Delete old release id: delete_release - uses: jagger27/delete-release@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: cb80/delrel@latest with: - tag_name: ${{ env.NIGHTLY_TAG }} + tag: ${{ env.NIGHTLY_TAG }} + + # ADVANCE NIGHTLY TAG TO MASTER - name: Advance nightly tag to master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - pushd polishedcrystal git tag ${{ env.NIGHTLY_TAG }} -f git push --tags -f "https://Rangi42:$GITHUB_TOKEN@github.com/Rangi42/polishedcrystal.git" - popd # CREATE NEW RELEASE - name: Create new release id: create_release - uses: actions/create-release@v1.1.4 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v1 with: tag_name: ${{ env.NIGHTLY_TAG }} - release_name: ${{ env.NIGHTLY_NAME }} + name: ${{ env.NIGHTLY_NAME }} body: ${{ env.NIGHTLY_BODY }} draft: false prerelease: true # UPLOAD POLISHED CRYSTAL ASSETS - - name: Upload ROM + - name: Upload ROM and SYM id: upload - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polishedcrystal/polishedcrystal-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - asset_name: polishedcrystal-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - asset_content_type: application/octet-stream - - name: Upload SYM - id: upload-sym - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v1 with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polishedcrystal/polishedcrystal-3.0.0-beta-${{ env.SHORT_SHA }}.sym - asset_name: polishedcrystal-3.0.0-beta-${{ env.SHORT_SHA }}.sym - asset_content_type: text/plain + tag_name: ${{ env.NIGHTLY_TAG }} + files: | + ./build/polishedcrystal-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + ./build/polishedcrystal-3.0.0-beta-${{ env.SHORT_SHA }}.sym # UPLOAD FAITHFUL ASSETS - - name: Upload faithful ROM + - name: Upload faithful ROM and SYM id: upload-faithful - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polishedcrystal-faithful/polishedcrystal-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - asset_name: polishedcrystal-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - asset_content_type: application/octet-stream - - name: Upload faithful SYM - id: upload-faithful-sym - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v1 with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polishedcrystal-faithful/polishedcrystal-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.sym - asset_name: polishedcrystal-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.sym - asset_content_type: text/plain + tag_name: ${{ env.NIGHTLY_TAG }} + files: | + ./build/polishedcrystal-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + ./build/polishedcrystal-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.sym # UPLOAD NORTC ASSETS - - name: Upload nortc ROM + - name: Upload nortc ROM and SYM id: upload-nortc - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v1 with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polishedcrystal-nortc/polishedcrystal-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - asset_name: polishedcrystal-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - asset_content_type: application/octet-stream - - name: Upload NoRTC SYM - id: upload-sym-nortc - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polishedcrystal-nortc/polishedcrystal-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym - asset_name: polishedcrystal-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym - asset_content_type: text/plain + tag_name: ${{ env.NIGHTLY_TAG }} + files: | + ./build/polishedcrystal-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + ./build/polishedcrystal-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym # UPLOAD FAITHFUL NORTC ASSETS - - name: Upload faithful nortc ROM + - name: Upload faithful nortc ROM and SYM id: upload-faithful-nortc - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v1 with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polishedcrystal-faithful-nortc/polishedcrystal-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - asset_name: polishedcrystal-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - asset_content_type: application/octet-stream - - name: Upload faithful nortc SYM - id: upload-faithful-nortc-sym - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polishedcrystal-faithful-nortc/polishedcrystal-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym - asset_name: polishedcrystal-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym - asset_content_type: text/plain + tag_name: ${{ env.NIGHTLY_TAG }} + files: | + ./build/polishedcrystal-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + ./build/polishedcrystal-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym # UPLOAD DEBUG ASSETS - - name: Upload debug ROM + - name: Upload debug ROM and SYM id: upload-debug - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v1 with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polisheddebug/polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - asset_name: polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - asset_content_type: application/octet-stream - - name: Upload debug SYM - id: upload-debug-sym - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polisheddebug/polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.sym - asset_name: polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.sym - asset_content_type: text/plain + tag_name: ${{ env.NIGHTLY_TAG }} + files: | + ./build/polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + ./build/polisheddebug-3.0.0-beta-${{ env.SHORT_SHA }}.sym # UPLOAD FAITHFUL DEBUG ASSETS - - name: Upload faithful debug ROM + - name: Upload faithful debug ROM and SYM id: upload-faithful-debug - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polisheddebug-faithful/polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - asset_name: polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - asset_content_type: application/octet-stream - - name: Upload faithful debug SYM - id: upload-faithful-debug-sym - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v1 with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polisheddebug-faithful/polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.sym - asset_name: polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.sym - asset_content_type: text/plain + tag_name: ${{ env.NIGHTLY_TAG }} + files: | + polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.sym # UPLOAD NORTC DEBUG ASSETS - - name: Upload nortc debug ROM + - name: Upload nortc debug ROM and SYM id: upload-debug-nortc - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polisheddebug-nortc/polisheddebug-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - asset_name: polisheddebug-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - asset_content_type: application/octet-stream - - name: Upload nortc debug SYM - id: upload-debug-nortc-sym - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v1 with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polisheddebug-nortc/polisheddebug-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym - asset_name: polisheddebug-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym - asset_content_type: text/plain + tag_name: ${{ env.NIGHTLY_TAG }} + files: | + polisheddebug-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + polisheddebug-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym # UPLOAD FAITHFUL NORTC DEBUG ASSETS - - name: Upload faithful nortc debug ROM + - name: Upload faithful nortc debug ROM and SYM id: upload-faithful-nortc-debug - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v1 with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polisheddebug-faithful-nortc/polisheddebug-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - asset_name: polisheddebug-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - asset_content_type: application/octet-stream - - name: Upload faithful nortc debug SYM - id: upload-faithful-nortc-debug-sym - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polisheddebug-faithful-nortc/polisheddebug-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym - asset_name: polisheddebug-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym - asset_content_type: text/plain + tag_name: ${{ env.NIGHTLY_TAG }} + files: | + polisheddebug-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + polisheddebug-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym # UPLOAD SAVE PATCH - name: Upload BSP id: upload-bsp - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v1 with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./polishedcrystal-savepatch/polishedcrystal-savepatch-3.0.0-beta-${{ env.SHORT_SHA }}.bsp - asset_name: polishedcrystal-savepatch-3.0.0-beta-${{ env.SHORT_SHA }}.bsp - asset_content_type: application/octet-stream + tag_name: ${{ env.NIGHTLY_TAG }} + files: polishedcrystal-savepatch-3.0.0-beta-${{ env.SHORT_SHA }}.bsp From 53a98805f1da397b3f5c26dad4b3d3d2314926cc Mon Sep 17 00:00:00 2001 From: darsh Date: Wed, 17 May 2023 03:02:16 -0400 Subject: [PATCH 3/6] check for dependency updates before installing them --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0a88d90766..820168588d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,6 +25,7 @@ jobs: - id: apt-get-depends name: "Install build dependencies" run: | + sudo apt-get update sudo apt-get install bison gcc git make python2 -y; # CHECKOUT RGBDS From 0e430caa2df1c87bb9516c3f5d73fbe846410d4b Mon Sep 17 00:00:00 2001 From: darsh Date: Wed, 17 May 2023 03:11:54 -0400 Subject: [PATCH 4/6] use correct file paths --- .github/workflows/build.yml | 2 +- .github/workflows/nightly.yml | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 820168588d..adc01a4843 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,7 +46,7 @@ jobs: # CHECKOUT REPOSITORY - id: checkout-polishedcrystal - name: "Checkout itsdarsh/polishedcrystal" + name: "Checkout Rangi42/polishedcrystal" uses: actions/checkout@v3 # BUILD ROMS diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 8cd88ad75a..9710409934 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -41,6 +41,7 @@ jobs: - id: apt-get-depends name: "Install dependencies" run: | + sudo apt-get update sudo apt-get install bison gcc git make python2 -y; # CHECKOUT REPOSITORY @@ -185,8 +186,8 @@ jobs: with: tag_name: ${{ env.NIGHTLY_TAG }} files: | - polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.sym + ./build/polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + ./build/polisheddebug-faithful-3.0.0-beta-${{ env.SHORT_SHA }}.sym # UPLOAD NORTC DEBUG ASSETS - name: Upload nortc debug ROM and SYM @@ -195,8 +196,8 @@ jobs: with: tag_name: ${{ env.NIGHTLY_TAG }} files: | - polisheddebug-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - polisheddebug-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym + ./build/polisheddebug-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + ./build/polisheddebug-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym # UPLOAD FAITHFUL NORTC DEBUG ASSETS - name: Upload faithful nortc debug ROM and SYM @@ -205,8 +206,8 @@ jobs: with: tag_name: ${{ env.NIGHTLY_TAG }} files: | - polisheddebug-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc - polisheddebug-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym + ./build/polisheddebug-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.gbc + ./build/polisheddebug-faithful-nortc-3.0.0-beta-${{ env.SHORT_SHA }}.sym # UPLOAD SAVE PATCH - name: Upload BSP @@ -214,4 +215,4 @@ jobs: uses: softprops/action-gh-release@v1 with: tag_name: ${{ env.NIGHTLY_TAG }} - files: polishedcrystal-savepatch-3.0.0-beta-${{ env.SHORT_SHA }}.bsp + files: ./build/polishedcrystal-savepatch-3.0.0-beta-${{ env.SHORT_SHA }}.bsp From eefb27680f41cef8b5ff8ed0792e1898acfcb7ea Mon Sep 17 00:00:00 2001 From: darsh Date: Wed, 17 May 2023 03:27:13 -0400 Subject: [PATCH 5/6] use v3.0.0-beta tag instead of v3.0.0-beta-nightly --- .github/workflows/nightly.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 9710409934..6f0d798718 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -9,8 +9,8 @@ on: # - cron: '0 5 * * *' env: - NIGHTLY_TAG: "v3.0.0-beta-nightly" - NIGHTLY_NAME: "3.0.0 beta nightly" + NIGHTLY_TAG: "v3.0.0-beta" + NIGHTLY_NAME: "3.0.0-beta" NIGHTLY_BODY: | This is the current Polished Crystal 3.0.0 *beta* release. The assets all have an 8-character "commit hash" at the end to identify the exact code they're built from. From 68d2960d3aa72c1bd07e3341dd467742958a7151 Mon Sep 17 00:00:00 2001 From: Kensuke Sano Date: Tue, 27 Jun 2023 14:49:28 +0900 Subject: [PATCH 6/6] Fix the link in readme (#858) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a87a2c4205..17c2c79c7b 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ I've had vague plans to make a Pokémon game for years. I'm very impressed by th ## Download and Play -The current beta version is **3.0.0**. It has some incomplete original content and known bugs, but it's playable from start to finish. Download the [nightly release](https://github.com/Rangi42/polishedcrystal/releases/tag/v3.0.0-beta-nightly) to get the very latest ROM, up-to-date with the `master` code branch. +The current beta version is **3.0.0**. It has some incomplete original content and known bugs, but it's playable from start to finish. Download the [nightly release](https://github.com/Rangi42/polishedcrystal/releases/tag/v3.0.0-beta) to get the very latest ROM, up-to-date with the `master` code branch. The most recent official version is [2.2.0](https://github.com/Rangi42/polishedcrystal/releases/tag/v2.2.0) as of September 20, 2016. [The changelog](CHANGELOG.md) lists all changes since then. I recommend playing the 3.0.0 beta instead.