tmp #25
Workflow file for this run
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: Tools | |
on: | |
push: | |
paths: | |
- 'tools/**' | |
- '.github/workflows/tools.yml' | |
pull_request: | |
paths: | |
- 'tools/**' | |
- '.github/workflows/tools.yml' | |
repository_dispatch: | |
types: [run_build] | |
workflow_dispatch: {} | |
jobs: | |
build: | |
runs-on: ${{ matrix.os[0] }} | |
strategy: | |
matrix: | |
os: [ | |
[macos-latest, arm64, bash], | |
[macos-13, x86_64, bash], | |
[ubuntu-latest, x86_64, bash], | |
[windows-latest, x86_64, msys2] | |
] | |
debug: [all, debug] | |
fail-fast: false | |
defaults: | |
run: | |
shell: ${{ matrix.os[2] }} {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install MSYS2 packages | |
if: matrix.os[0] == 'windows-latest' | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: MINGW32 | |
install: | | |
base-devel mingw-w64-i686-gcc | |
update: true | |
- name: Compile tools | |
run: | | |
export PS2DEV=$PWD/ps2dev | |
export PS2SDK=$PS2DEV/ps2sdk | |
make -j $(getconf _NPROCESSORS_ONLN) ONLY_HOST_TOOLS=1 clean | |
make -j $(getconf _NPROCESSORS_ONLN) ONLY_HOST_TOOLS=1 ${{ matrix.debug }} | |
make -j $(getconf _NPROCESSORS_ONLN) ONLY_HOST_TOOLS=1 install | |
- name: Upload artifacts | |
if: ${{ success() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ps2sdk-tools-${{ matrix.debug }}-${{ matrix.os[0] }}-${{ matrix.os[1] }} | |
path: ps2dev/ps2sdk/bin/* |