2021-11-02 11:56:56 +01:00
|
|
|
name: macOS build
|
2021-11-02 11:54:09 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-11-02 11:56:56 +01:00
|
|
|
branches: [ main ]
|
2021-11-02 11:54:09 +01:00
|
|
|
|
|
|
|
jobs:
|
2021-11-02 11:56:56 +01:00
|
|
|
build:
|
2021-11-02 11:54:09 +01:00
|
|
|
runs-on: macOS-latest
|
|
|
|
|
|
|
|
steps:
|
2021-11-02 11:56:56 +01:00
|
|
|
- name: Build mkpsxiso
|
|
|
|
run: |
|
2021-11-02 13:21:39 +01:00
|
|
|
wget https://github.com/Lameguy64/mkpsxiso/archive/refs/heads/master.zip -O ${{github.workspace}}/master.zip
|
2021-11-02 13:39:16 +01:00
|
|
|
7z x ${{github.workspace}}/master.zip -o${{github.workspace}}
|
2021-11-02 17:58:55 +01:00
|
|
|
awk 'n>=4 { print a[n%7] } { a[n%7]=$0; n=n+1 }' ${{github.workspace}}/mkpsxiso-master/CMakeLists.txt >> ${{github.workspace}}/mkpsxiso-master/CMakeLists.txt.tmp
|
|
|
|
mv -f ${{github.workspace}}/mkpsxiso-master/CMakeLists.txt.tmp ${{github.workspace}}/mkpsxiso-master/CMakeLists.txt
|
2021-11-02 17:53:54 +01:00
|
|
|
cat ${{github.workspace}}/mkpsxiso-master/CMakeLists.txt
|
2021-11-02 13:39:16 +01:00
|
|
|
mkdir ${{github.workspace}}/mkpsxiso-master/build
|
2021-11-02 13:41:08 +01:00
|
|
|
ls -l ${{github.workspace}}
|
2021-11-02 13:39:16 +01:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -S ${{github.workspace}}/mkpsxiso-master -B ${{github.workspace}}/mkpsxiso-master/build
|
|
|
|
cmake --build ${{github.workspace}}/mkpsxiso-master/build
|
|
|
|
echo "${{github.workspace}}/mkpsxiso-master/build" >> $GITHUB_PATH
|