Skip to content

Commit c4f125d

Browse files
committed
refactor: Improve CI
Enable fail fast Normalize install package list Bump checkout action version Fix macOS capitalization Add workflow dispatch
1 parent 31cd529 commit c4f125d

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

.github/workflows/compilation.yml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,43 +5,58 @@ on:
55
pull_request:
66
repository_dispatch:
77
types: [run_build, run_release]
8+
workflow_dispatch: {}
89

910
jobs:
1011
build:
1112
runs-on: ${{ matrix.os[0] }}
1213
strategy:
1314
matrix:
1415
os: [[macos-latest, bash], [ubuntu-latest, bash], [windows-latest, msys2]]
16+
fail-fast: false
1517
defaults:
1618
run:
1719
shell: ${{ matrix.os[1] }} {0}
1820

1921
steps:
20-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v3
23+
with:
24+
fetch-depth: 0
2125

22-
- name: Install Ubuntu texinfo bison flex
26+
- name: Install Ubuntu packages
2327
if: matrix.os[0] == 'ubuntu-latest'
2428
run: |
2529
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
2732
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'
3035
run: |
3136
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
3339
34-
- name: Install MSYS2 texinfo bison flex
40+
- name: Install MSYS2 packages
3541
if: matrix.os[0] == 'windows-latest'
3642
uses: msys2/setup-msys2@v2
3743
with:
3844
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
4048
update: true
4149
shell: msys2 {0}
4250

4351
- name: Runs all the stages in the shell
52+
continue-on-error: false
4453
run: |
4554
export PS2DEV=$PWD/ps2dev
4655
export PATH=$PATH:$PS2DEV/dvp/bin
4756
./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

Comments
 (0)