-
Notifications
You must be signed in to change notification settings - Fork 7
115 lines (91 loc) · 2.87 KB
/
Suicide_Barbie.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: Suicide_Barbie
on:
push:
pull_request:
workflow_dispatch:
jobs:
Linux:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Retrieve commit hash
id: psptoolchain
run: echo "::set-output name=sha::$(git -C psptoolchain rev-parse HEAD)"
- name: Cache PSP toolchain
uses: actions/cache@v2
id: cache-psptoolchain
with:
path: pspdev
key: ${{ runner.os }}-psptoolchain-${{ steps.psptoolchain.outputs.sha }}
- name: Install deps
if: steps.cache-psptoolchain.outputs.cache-hit != 'true'
run: sudo apt install autoconf automake bison flex gcc-9 libncurses-dev make subversion texinfo wget libusb-dev
- name: Bootstrap
if: steps.cache-psptoolchain.outputs.cache-hit != 'true'
run: ./bootstrap.sh
- name: Clean
run: ./clean.sh
- name: Build
run: ./build.sh
macOS:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Retrieve commit hash
id: psptoolchain
run: echo "::set-output name=sha::$(git -C psptoolchain rev-parse HEAD)"
- name: Cache PSP toolchain
uses: actions/cache@v2
id: cache-psptoolchain
with:
path: pspdev
key: ${{ runner.os }}-psptoolchain-${{ steps.psptoolchain.outputs.sha }}
- name: Install deps
if: steps.cache-psptoolchain.outputs.cache-hit != 'true'
run: brew install autoconf automake flex gcc@9 ncurses make subversion texinfo wget libusb libusb-compat sdl
- name: Bootstrap
if: steps.cache-psptoolchain.outputs.cache-hit != 'true'
run: ./bootstrap.sh
- name: Clean
run: ./clean.sh
- name: Build
run: ./build.sh
Linux-latest-pspdev:
runs-on: ubuntu-20.04
steps:
- name: Checkout the main repo
uses: actions/checkout@v2
- name: Checkout the latest PSP toolchain script
uses: actions/checkout@v2
with:
repository: pspdev/psptoolchain
path: psptoolchain
- name: Retrieve commit hash
id: psptoolchain
run: echo "::set-output name=sha::$(git -C psptoolchain rev-parse HEAD)"
- name: Cache PSP toolchain
uses: actions/cache@v2
id: cache-psptoolchain
with:
path: pspdev
key: ${{ runner.os }}-psptoolchain-${{ steps.psptoolchain.outputs.sha }}
- name: Install deps
if: steps.cache-psptoolchain.outputs.cache-hit != 'true'
run: |
cd psptoolchain
./prepare-debian-ubuntu.sh
- name: Bootstrap
if: steps.cache-psptoolchain.outputs.cache-hit != 'true'
run: |
export PSPDEV=$(pwd)/pspdev
export PATH=$PATH:$PSPDEV/bin
cd psptoolchain
./toolchain.sh
- name: Clean
run: ./clean.sh
- name: Build
run: ./build.sh