File tree Expand file tree Collapse file tree 2 files changed +59
-0
lines changed
Expand file tree Collapse file tree 2 files changed +59
-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 : Get short SHA
28+ id : slug
29+ run : echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
30+
31+ - name : Compress bin folder
32+ run : |
33+ tar -zcvf bin.tar.gz ps2dev/bin
34+
35+ - uses : actions/upload-artifact@v2
36+ with :
37+ name : ps2client-${{ steps.slug.outputs.sha8 }}-${{matrix.os}}
38+ path : ps2dev/bin/
39+
40+ - name : Extract tag name
41+ if : startsWith(github.ref, 'refs/tags/')
42+ id : tag
43+ 44+ with :
45+ github-token : ${{ secrets.GITHUB_TOKEN }}
46+ script : |
47+ return context.payload.ref.replace(/\/refs\/tags\//, '');
48+
49+ - name : Release
50+ if : startsWith(github.ref, 'refs/tags/')
51+ uses : softprops/action-gh-release@v1
52+ with :
53+ files : ps2dev.tar.gz
54+ tag_name : ${{ steps.tag.outputs.result }}
55+ env :
56+ 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