mirror of
https://github.com/LegacyUpdate/LegacyUpdate.git
synced 2025-01-22 06:01:50 -05:00
Another attempt to fix CI
This commit is contained in:
parent
1cbb833085
commit
23d48e85e9
3 changed files with 18 additions and 11 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -55,7 +55,7 @@ jobs:
|
|||
id: build
|
||||
run: |
|
||||
export PATH=/opt/gcc-13.2-binutils-2.41-mingw-v11.0.1-i686/bin:$PATH
|
||||
make CI=1 SIGN=0
|
||||
make CI=1 DEBUG=0
|
||||
echo "out=$(echo setup/LegacyUpdate-*.exe)" >> "$(wslpath -u "$GITHUB_OUTPUT")"
|
||||
|
||||
- name: Upload Build Artifact
|
||||
|
|
|
@ -1,8 +1,13 @@
|
|||
override DEBUG := $(or $(DEBUG),1)
|
||||
MSBUILDCONFIG = $(if $(filter 1,$(DEBUG)),Debug-VC08,Release)
|
||||
|
||||
ifeq ($(CI)$(DEBUG),11)
|
||||
MSBUILDCONFIG = Debug-VC17
|
||||
MSBUILDCONFIG32 = $(if $(filter 1,$(DEBUG)),Debug-VC08,Release)
|
||||
MSBUILDCONFIG64 = $(if $(filter 1,$(DEBUG)),Debug-VC17,Release)
|
||||
|
||||
ifeq ($(CI),1)
|
||||
ifeq ($(DEBUG),1)
|
||||
MSBUILDCONFIG32 = Debug-VC17
|
||||
endif
|
||||
MSBUILDFLAGS += /p:PlatformToolset=v141_xp
|
||||
endif
|
||||
|
||||
VSPATH ?= $(shell wslpath "$(shell '/mnt/c/Program Files (x86)/Microsoft Visual Studio/Installer/vswhere.exe' -latest -property installationPath)")
|
||||
|
@ -11,11 +16,11 @@ PATH := $(VSPATH)/MSBuild/Current/Bin:$(PATH)
|
|||
MSBUILD = msbuild.exe
|
||||
|
||||
all:
|
||||
@# Unfortunately always needs to be a clean build because of "dlldatax.obj: error LNK2001:
|
||||
@# unresolved external symbol _LegacyUpdate_ProxyFileInfo"
|
||||
+$(MAKE) clean
|
||||
cd ..; $(MSBUILD) LegacyUpdate.sln /v:minimal /m /p:Configuration=$(MSBUILDCONFIG) /p:Platform=Win32
|
||||
cd ..; $(MSBUILD) LegacyUpdate.sln /v:minimal /m /p:Configuration=$(MSBUILDCONFIG) /p:Platform=x64
|
||||
@# Workaround for "dlldatax.obj: LNK2001: unresolved external symbol _LegacyUpdate_ProxyFileInfo"
|
||||
rm -f LegacyUpdate_p.c
|
||||
cd ..; $(MSBUILD) LegacyUpdate.sln /v:minimal /m /p:Configuration=$(MSBUILDCONFIG32) /p:Platform=Win32 $(MSBUILDFLAGS)
|
||||
rm -f LegacyUpdate_p.c
|
||||
cd ..; $(MSBUILD) LegacyUpdate.sln /v:minimal /m /p:Configuration=$(MSBUILDCONFIG64) /p:Platform=x64 $(MSBUILDFLAGS)
|
||||
|
||||
ifeq ($(SIGN),1)
|
||||
../build/sign.sh \
|
||||
|
@ -24,7 +29,8 @@ ifeq ($(SIGN),1)
|
|||
endif
|
||||
|
||||
clean:
|
||||
cd ..; $(MSBUILD) LegacyUpdate.sln /v:quiet /m /p:Configuration=$(MSBUILDCONFIG) /p:Platform=Win32 /t:clean
|
||||
cd ..; $(MSBUILD) LegacyUpdate.sln /v:quiet /m /p:Configuration=$(MSBUILDCONFIG) /p:Platform=x64 /t:clean
|
||||
rm -rf \
|
||||
Debug-VC08 Debug-VC17 Release x64 \
|
||||
LegacyUpdate_i.c LegacyUpdate_i.h LegacyUpdate_p.c LegacyUpdateidl.h
|
||||
|
||||
.PHONY: all clean
|
||||
|
|
1
Makefile
1
Makefile
|
@ -1,3 +1,4 @@
|
|||
export CI ?= 0
|
||||
export SIGN ?= 0
|
||||
export DEBUG ?= 1
|
||||
|
||||
|
|
Loading…
Reference in a new issue