mirror of https://github.com/PrimeDecomp/prime.git
ci: Use WiBo
This commit is contained in:
parent
ba2ae540fd
commit
283ac7539b
|
@ -11,17 +11,30 @@ jobs:
|
||||||
env:
|
env:
|
||||||
WINEPREFIX: ${{github.workspace}}/.wine
|
WINEPREFIX: ${{github.workspace}}/.wine
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Checkout WiBo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
repository: decompals/WiBo
|
||||||
|
path: tools/WiBo
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo dpkg --add-architecture i386
|
sudo dpkg --add-architecture i386
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get -y install build-essential wine32
|
sudo apt-get -y install build-essential gcc-multilib g++-multilib libc6:i386
|
||||||
sudo chown $(whoami) "$GITHUB_WORKSPACE"
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Download compilers
|
|
||||||
run: |
|
|
||||||
curl -L https://cdn.discordapp.com/attachments/727918646525165659/917185027656286218/GC_WII_COMPILERS.zip \
|
curl -L https://cdn.discordapp.com/attachments/727918646525165659/917185027656286218/GC_WII_COMPILERS.zip \
|
||||||
| bsdtar -xvf- -C tools --exclude Wii
|
| bsdtar -xvf- -C tools --exclude Wii
|
||||||
mv tools/GC tools/mwcc_compiler
|
mv tools/GC/* tools/mwcc_compiler/
|
||||||
- name: make
|
- name: Build WiBo
|
||||||
run: make -j$(nproc)
|
working-directory: tools/WiBo
|
||||||
|
run: |
|
||||||
|
cmake -B build
|
||||||
|
cmake --build build
|
||||||
|
- name: Build
|
||||||
|
run: make -j$(nproc) WINE=./tools/WiBo/build/wibo
|
||||||
|
- name: Upload map
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: MetroidPrime.MAP
|
||||||
|
path: build/mp1.0/MetroidPrime.MAP
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -8,8 +8,8 @@ endif
|
||||||
# If 0, tells the console to chill out. (Quiets the make process.)
|
# If 0, tells the console to chill out. (Quiets the make process.)
|
||||||
VERBOSE ?= 0
|
VERBOSE ?= 0
|
||||||
|
|
||||||
# If MAPGENFLAG set to 1, tells LDFLAGS to generate a mapfile, which makes linking take several minutes.
|
# If GENERATE_MAP set to 1, tells LDFLAGS to generate a mapfile, which makes linking take several minutes.
|
||||||
MAPGENFLAG ?= 1
|
GENERATE_MAP ?= 1
|
||||||
|
|
||||||
ifeq ($(VERBOSE),0)
|
ifeq ($(VERBOSE),0)
|
||||||
QUIET := @
|
QUIET := @
|
||||||
|
@ -37,7 +37,7 @@ ELF := $(DOL:.dol=.elf)
|
||||||
MAP := $(BUILD_DIR)/MetroidPrime.MAP
|
MAP := $(BUILD_DIR)/MetroidPrime.MAP
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(MAPGENFLAG),1)
|
ifeq ($(GENERATE_MAP),1)
|
||||||
MAPGEN := -map $(MAP)
|
MAPGEN := -map $(MAP)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue