Skip to content

ci: forgot to checkout :clown: #2

ci: forgot to checkout :clown:

ci: forgot to checkout :clown: #2

Workflow file for this run

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/checkout@v4.1.1
- 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/upload-artifact@v4.3.0
with:
name: ${{ steps.pkg-name.outputs.name }}
path: |
PocketClicker.gb
PocketClicker.sym