File tree Expand file tree Collapse file tree 2 files changed +55
-0
lines changed
Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ pull_request :
6+ repository_dispatch :
7+ types : [run_build]
8+
9+ jobs :
10+ build :
11+ runs-on : ${{ matrix.os }}
12+ strategy :
13+ matrix :
14+ os : [macos-latest, ubuntu-latest]
15+
16+ steps :
17+ - uses : actions/checkout@v2
18+
19+ - name : Runs all the stages in the shell
20+ run : |
21+ export PS2DEV=$PWD/ps2dev
22+ export PS2SDK=$PS2DEV/ps2sdk
23+ export GSKIT=$PS2DEV/gsKit
24+ export PATH=$PATH:$PS2DEV/bin:$PS2DEV/ee/bin:$PS2DEV/iop/bin:$PS2DEV/dvp/bin:$PS2SDK/bin
25+ make clean all install
26+
27+ - name : Compress ps2dev folder
28+ run : |
29+ tar -zcvf ps2dev.tar.gz ps2dev
30+
31+ - uses : actions/upload-artifact@v2
32+ with :
33+ name : ps2dev-${{matrix.os}}
34+ path : ps2dev.tar.gz
35+
36+ - name : Extract tag name
37+ if : startsWith(github.ref, 'refs/tags/')
38+ id : tag
39+ 40+ with :
41+ github-token : ${{ secrets.GITHUB_TOKEN }}
42+ script : |
43+ return context.payload.ref.replace(/\/refs\/tags\//, '');
44+
45+ - name : Release
46+ if : startsWith(github.ref, 'refs/tags/')
47+ uses : softprops/action-gh-release@v1
48+ with :
49+ files : ps2dev.tar.gz
50+ tag_name : ${{ steps.tag.outputs.result }}
51+ env :
52+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ # PS2Client
2+
3+ ![ CI] ( https://github.com/ps2dev/ps2client/workflows/CI/badge.svg )
You can’t perform that action at this time.
0 commit comments