mirror of
https://github.com/pret/pokefirered.git
synced 2026-05-11 22:45:18 -05:00
54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- no-ql-and-hs
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GAME_VERSION: FIRERED
|
|
GAME_REVISION: 0
|
|
GAME_LANGUAGE: ENGLISH
|
|
COMPARE: 0
|
|
UNUSED_ERROR: 1
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install binutils
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install -y binutils-arm-none-eabi gcc-arm-none-eabi libnewlib-arm-none-eabi libpng-dev python3
|
|
# build-essential and git are already installed
|
|
|
|
- name: Firered
|
|
env:
|
|
GAME_VERSION: FIRERED
|
|
run: make -j${nproc} -O all
|
|
|
|
- name: Leafgreen
|
|
env:
|
|
GAME_VERSION: LEAFGREEN
|
|
run: make -j${nproc} -O all
|
|
|
|
- name: LTO
|
|
run: |
|
|
make tidy
|
|
make -j${nproc} LTO=1
|
|
# make tidy to purge previous build
|
|
|
|
- name: Test
|
|
env:
|
|
TEST: 1
|
|
run: |
|
|
make -j${nproc} check
|