Skip to content

Commit cd61a57

Browse files
committed
Add compilation scripts to PS2Client repo
1 parent 7f24354 commit cd61a57

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

.github/workflows/compilation.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
uses: actions/[email protected]
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 }}

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# PS2Client
2+
3+
![CI](https://github.com/ps2dev/ps2client/workflows/CI/badge.svg)

0 commit comments

Comments
 (0)