mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-04-21 14:37:32 -05:00
Some checks are pending
build / build (push) Waiting to run
* Remove extraneous `include/` directory level from brightness_controller * Wrap WSL_ACCESSING_WINDOWS detection in realpath * Integrate metroskrew as the default compiler * Remove tools/cw contents
73 lines
1.7 KiB
YAML
73 lines
1.7 KiB
YAML
name: build
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
paths-ignore:
|
|
- '**.md'
|
|
pull_request:
|
|
paths-ignore:
|
|
- '**.md'
|
|
|
|
env:
|
|
LM_LICENSE_FILE: "${{ github.workspace }}/tools/cw/license.dat"
|
|
BUILD: /var/tmp/pokeplatinum
|
|
|
|
jobs:
|
|
build:
|
|
permissions:
|
|
contents: write
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Install Software
|
|
run: |
|
|
sudo apt-get update -y
|
|
sudo apt-get install -y bison flex g++ gcc-arm-none-eabi git make ninja-build pkg-config python3 wget xz-utils
|
|
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Metroskrew
|
|
run: sudo make skrew
|
|
|
|
- name: Configure Repo
|
|
run: make configure
|
|
|
|
- name: Build Repo
|
|
run: make check
|
|
|
|
- name: Checkout xMAP
|
|
if: ${{ github.event_name == 'push' }}
|
|
uses: actions/checkout@v4
|
|
with:
|
|
path: 'xmap'
|
|
ref: 'xmap'
|
|
|
|
- name: Move xMAP
|
|
if: ${{ github.event_name == 'push' }}
|
|
run: |
|
|
mkdir -p xmap
|
|
cp "$BUILD"/*.xMAP xmap/platinumus.xMAP
|
|
echo "XMAP_COMMIT_MSG=$( git log --format=%s ${GITHUB_SHA} )" >> $GITHUB_ENV
|
|
|
|
- name: Update xMAP
|
|
if: ${{ github.event_name == 'push' }}
|
|
uses: EndBug/add-and-commit@v9
|
|
with:
|
|
cwd: "./xmap"
|
|
add: "*.xMAP"
|
|
message: ${{ env.XMAP_COMMIT_MSG }}
|
|
|
|
- name: Post error archive
|
|
if: failure()
|
|
continue-on-error: true
|
|
run: tar czf failure.tar.gz "$BUILD"
|
|
|
|
- name: Post error upload
|
|
if: failure()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: pokeplatinum-failure-${{ github.run_id }}
|
|
path: failure.tar.gz
|
|
retention-days: 1
|