run_build #127
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: CI | |
on: | |
push: | |
pull_request: | |
repository_dispatch: | |
types: [run_build] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os[0] }} | |
strategy: | |
matrix: | |
os: [[macos-latest, bash], [ubuntu-latest, bash], [windows-latest, msys2]] | |
defaults: | |
run: | |
shell: ${{ matrix.os[1] }} {0} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Ubuntu texinfo bison flex | |
if: matrix.os[0] == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install texinfo bison flex gettext libgmp3-dev libmpfr-dev libmpc-dev | |
- name: Install Mac texinfo bison flex | |
if: matrix.os[0] == 'macOS-latest' | |
run: | | |
brew update | |
brew install texinfo bison flex gnu-sed gsl gmp mpfr libmpc | |
- name: Install MSYS2 texinfo bison flex | |
if: matrix.os[0] == 'windows-latest' | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: MINGW32 | |
install: base-devel git make texinfo flex bison patch binutils mingw-w64-i686-gcc mpc-devel | |
update: true | |
shell: msys2 {0} | |
- name: Runs all the stages in the shell | |
run: | | |
export PS2DEV=$PWD/ps2dev | |
export PS2SDK=$PS2DEV/ps2sdk | |
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH" | |
export PATH="/usr/local/opt/bison/bin:$PATH" | |
export PATH=$PATH:$PS2DEV/bin:$PS2DEV/ee/bin:$PS2DEV/iop/bin:$PS2DEV/dvp/bin:$PS2SDK/bin | |
./toolchain.sh |