Add Win build action
This commit is contained in:
parent
c083d1de85
commit
c5c8e90417
26
.github/workflows/windows-build.yml
vendored
Normal file
26
.github/workflows/windows-build.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
name: Windows build
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Fetch submodules
|
||||
run: git submodule update --init --recursive
|
||||
- name: Get prebuilt stuff
|
||||
run: |
|
||||
powershell -c "& { iwr https://raw.githubusercontent.com/grumpycoders/pcsx-redux/main/mips.ps1 | iex }"
|
||||
mips install 11.2.0
|
||||
C:\msys64\usr\bin\wget.exe https://github.com/Lameguy64/mkpsxiso/releases/download/v1.26/mkpsxiso-1.26.zip
|
||||
C:\msys64\usr\bin\wget.exe http://psx.arthus.net/sdk/Psy-Q/psyq-4.7-converted-full.7z
|
||||
7z.exe x mkpsxiso-1.20.zip -o"$GITHUB_WORKSPACE\mkpsxiso"
|
||||
7z.exe x psyq-4.7-converted-full.7z -o"D:\a\nolibgs_hello_worlds\nolibgs_hello_worlds\psyq"
|
||||
echo "$GITHUB_WORKSPACE/mkpsxiso" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||
echo $GITHUB_PATH
|
||||
- name: Make all
|
||||
run: make all
|
12
common.mk
12
common.mk
@ -40,10 +40,18 @@ LDFLAGS += -Wl,--end-group
|
||||
|
||||
include $(THISDIR)thirdparty/nugget/common.mk
|
||||
|
||||
define OBJCOPYME
|
||||
$(PREFIX)-objcopy -I binary --set-section-alignment .data=4 --rename-section .data=.rodata,alloc,load,readonly,data,contents -O $(FORMAT) -B mips $< $@
|
||||
endef
|
||||
|
||||
# convert TIM file to bin
|
||||
%.o: %.tim
|
||||
$(PREFIX)-objcopy -I binary --set-section-alignment .data=4 --rename-section .data=.rodata,alloc,load,readonly,data,contents -O $(FORMAT) -B mips $< $@
|
||||
$(call OBJCOPYME)
|
||||
|
||||
# convert VAG files to bin
|
||||
%.o: %.vag
|
||||
$(PREFIX)-objcopy -I binary --set-section-alignment .data=4 --rename-section .data=.rodata,alloc,load,readonly,data,contents -O $(FORMAT) -B mips $< $@
|
||||
$(call OBJCOPYME)
|
||||
|
||||
# convert HIT to bin
|
||||
%.o: %.HIT
|
||||
$(call OBJCOPYME)
|
Loading…
Reference in New Issue
Block a user