-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (44 loc) · 1.25 KB
/
build.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
name: Build
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container: devkitpro/devkitppc:latest
strategy:
fail-fast: false
matrix:
version: [0]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache wineprefix
id: cache-wineprefix
uses: actions/cache@v3
with:
path: /tmp/wineprefix
key: ${{ runner.os }}-wineprefix
- name: Install dependencies
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get -y install build-essential python3 gcc-multilib g++-multilib libc6:i386 wine
curl -L https://cdn.discordapp.com/attachments/727918646525165659/917185027656286218/GC_WII_COMPILERS.zip \
| bsdtar -xvf- -C tools
mv tools/Wii/* tools/mwcc_compiler/
- name: Start wine
if: steps.cache-wineprefix.outputs.cache-hit != 'true'
run: |
mkdir /tmp/wineprefix
export WINEPREFIX=/tmp/wineprefix/.wine
wineboot
- name: Build
run: |
export WINEPREFIX=/tmp/wineprefix/.wine
make -j$(nproc)
- name: Upload map
uses: actions/upload-artifact@v3
with:
name: donut-${{matrix.version}}.MAP
path: build/*/donut.MAP