|
5 | 5 | pull_request: |
6 | 6 | repository_dispatch: |
7 | 7 | types: [run_build, run_release] |
| 8 | + workflow_dispatch: {} |
8 | 9 |
|
9 | 10 | jobs: |
10 | 11 | build: |
11 | 12 | runs-on: ${{ matrix.os[0] }} |
12 | 13 | strategy: |
13 | 14 | matrix: |
14 | 15 | os: [[macos-latest, bash], [ubuntu-latest, bash], [windows-latest, msys2]] |
| 16 | + fail-fast: false |
15 | 17 | defaults: |
16 | 18 | run: |
17 | 19 | shell: ${{ matrix.os[1] }} {0} |
18 | 20 |
|
19 | 21 | steps: |
20 | | - - uses: actions/checkout@v2 |
| 22 | + - uses: actions/checkout@v3 |
| 23 | + with: |
| 24 | + fetch-depth: 0 |
21 | 25 |
|
22 | | - - name: Install Ubuntu texinfo bison flex |
| 26 | + - name: Install Ubuntu packages |
23 | 27 | if: matrix.os[0] == 'ubuntu-latest' |
24 | 28 | run: | |
25 | 29 | sudo apt-get update |
26 | | - sudo apt-get -y install texinfo bison flex gettext |
| 30 | + sudo apt-get -y install texinfo bison flex gettext libgmp3-dev libmpfr-dev libmpc-dev |
| 31 | + echo "MSYSTEM=x64" >> $GITHUB_ENV |
27 | 32 |
|
28 | | - - name: Install Mac texinfo bison flex |
29 | | - if: matrix.os[0] == 'macOS-latest' |
| 33 | + - name: Install macOS packages |
| 34 | + if: matrix.os[0] == 'macos-latest' |
30 | 35 | run: | |
31 | 36 | brew update |
32 | | - brew install texinfo bison flex |
| 37 | + brew install texinfo bison flex gnu-sed gsl gmp mpfr libmpc |
| 38 | + echo "MSYSTEM=x64" >> $GITHUB_ENV |
33 | 39 |
|
34 | | - - name: Install MSYS2 texinfo bison flex |
| 40 | + - name: Install MSYS2 packages |
35 | 41 | if: matrix.os[0] == 'windows-latest' |
36 | 42 | uses: msys2/setup-msys2@v2 |
37 | 43 | with: |
38 | 44 | msystem: MINGW32 |
39 | | - install: git make texinfo flex bison patch binutils mingw-w64-i686-gcc |
| 45 | + install: | |
| 46 | + base-devel git make texinfo flex bison patch binutils mingw-w64-i686-gcc mpc-devel tar |
| 47 | + mingw-w64-i686-cmake mingw-w64-i686-extra-cmake-modules mingw-w64-i686-make mingw-w64-i686-libogg |
40 | 48 | update: true |
41 | 49 | shell: msys2 {0} |
42 | 50 |
|
43 | 51 | - name: Runs all the stages in the shell |
| 52 | + continue-on-error: false |
44 | 53 | run: | |
45 | 54 | export PS2DEV=$PWD/ps2dev |
46 | 55 | export PATH=$PATH:$PS2DEV/dvp/bin |
47 | 56 | ./toolchain.sh |
| 57 | +
|
| 58 | + - name: Print version of executables |
| 59 | + run: | |
| 60 | + export PS2DEV=$PWD/ps2dev |
| 61 | + export PATH=$PATH:$PS2DEV/dvp/bin |
| 62 | + dvp-as --version |
0 commit comments