ci: forgot to checkout :clown: #2
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
name: Build ROM | |
on: | |
push: | |
branches: master | |
pull_request: | |
branches: master | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Install Nim | |
uses: iffy/install-nim@v5 | |
with: | |
version: 2.0.4 | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Determine artifact name | |
id: pkg-name | |
run: | | |
name="pocket-clicker-$(git rev-parse --short HEAD)" | |
echo "${name}" | |
echo "name=${name}" >> $GITHUB_OUTPUT | |
- name: Cache GBDK | |
id: cache-gbdk | |
uses: actions/cache@v4 | |
with: | |
path: gbdk | |
key: ${{ runner.os }}-gbdk-4.x | |
- name: Setup GBDK | |
if: ${{ steps.cache-gbdk.outputs.cache-hit != 'true' }} | |
run: | | |
wget https://github.com/gbdk-2020/gbdk-2020/releases/download/pre-release/gbdk-linux64.tar.gz | |
tar xvf gbdk-linux64.tar.gz | |
- name: Build | |
run: | | |
GBDK_ROOT=${PWD}/gbdk nim build | |
- name: Upload artifact | |
if: ${{ github.ref_name == 'master' }} | |
uses: actions/[email protected] | |
with: | |
name: ${{ steps.pkg-name.outputs.name }} | |
path: | | |
PocketClicker.gb | |
PocketClicker.sym |