Skip to content

Commit 4092326

Browse files
committed
CI: compilation env WIP
1 parent 6b927cd commit 4092326

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

.github/workflows/compilation.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
if: startsWith(matrix.os.runs-on, 'macos') && matrix.os.macos-package-manager == 'port'
9292
run: |
9393
curl -LO https://raw.githubusercontent.com/GiovanniBussi/macports-ci/master/macports-ci
94-
source ./macports-ci install --remove-brew --version=2.11.5 --sync=rsync
94+
. ./macports-ci install --remove-brew --version=2.11.5 --sync=rsync
9595
sudo port install gsl gmp mpfr libmpc libiconv bison flex gsed texinfo autoconf automake libtool md5sha1sum wget curl
9696
9797
- name: Install MSYS2 packages
@@ -108,15 +108,7 @@ jobs:
108108

109109
- name: Runs all the stages in the shell
110110
run: |
111-
export PS2DEV=$PWD/ps2dev
112-
export PS2SDK=$PS2DEV/ps2sdk
113-
export GSKIT=$PS2DEV/gsKit
114-
if command -v brew &> /dev/null; then export PATH="$(brew --prefix gnu-sed)/libexec/gnubin:$PATH"; fi # This is just needed for MacOS
115-
export PATH=$PATH:$PS2DEV/bin
116-
export PATH=$PATH:$PS2DEV/iop/bin
117-
export PATH=$PATH:$PS2DEV/ee/bin
118-
export PATH=$PATH:$PS2DEV/dvp/bin
119-
export PATH=$PATH:$PS2SDK/bin
111+
. ./config/ci-env.sh
120112
if test -f ./build-all.sh; then ./build-all.sh; fi
121113
if test -f ./toolchain.sh; then ./toolchain.sh; fi
122114
@@ -171,7 +163,7 @@ jobs:
171163
files: ps2dev-${{ matrix.os.runs-on }}.tar.gz
172164
prerelease: true
173165
name: "Development build"
174-
tag_name: "latest"
166+
tag_name: latest
175167
env:
176168
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
177169

config/ci-env.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
export PS2DEV=$PWD/ps2dev
4+
export PATH=$PATH:$PS2DEV/bin
5+
export PATH=$PATH:$PS2DEV/dvp/bin

0 commit comments

Comments
 (0)