Skip to content

Commit 639b6f3

Browse files
committed
CI: separate out CI version printing
1 parent c0902ff commit 639b6f3

File tree

2 files changed

+7
-23
lines changed

2 files changed

+7
-23
lines changed

.github/workflows/compilation.yml

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -114,30 +114,9 @@ jobs:
114114
if test -f ./build-all.sh; then ./build-all.sh; fi
115115
if test -f ./toolchain.sh; then ./toolchain.sh; fi
116116
117-
- name: Print version of executables (ps2toolchain-iop)
118-
if: github.event.repository.name == 'ps2toolchain-iop'
117+
- name: Print version of executables
119118
run: |
120-
export PS2DEV=$PWD/ps2dev
121-
export PATH=$PATH:$PS2DEV/iop/bin
122-
mipsel-none-elf-as --version
123-
mipsel-none-elf-ld --version
124-
mipsel-none-elf-gcc --version
125-
126-
- name: Print version of executables (ps2toolchain-ee)
127-
if: github.event.repository.name == 'ps2toolchain-ee'
128-
run: |
129-
export PS2DEV=$PWD/ps2dev
130-
export PATH=$PATH:$PS2DEV/ee/bin
131-
mips64r5900el-ps2-elf-as --version
132-
mips64r5900el-ps2-elf-ld --version
133-
mips64r5900el-ps2-elf-gcc --version
134-
135-
- name: Print version of executables (ps2toolchain-dvp)
136-
if: github.event.repository.name == 'ps2toolchain-dvp'
137-
run: |
138-
export PS2DEV=$PWD/ps2dev
139-
export PATH=$PATH:$PS2DEV/dvp/bin
140-
dvp-as --version
119+
if test -f ./config/ci-print-version.sh; then ./config/ci-print-version.sh; fi
141120
142121
- name: Get short SHA
143122
id: slug

config/ci-print-version.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/dvp/bin
5+
dvp-as --version

0 commit comments

Comments
 (0)