Skip to content

Commit 60724b4

Browse files
authored
[ci] add dxcompiler.dll, dxil.dll into windows make build (#855)
1 parent 3ab8313 commit 60724b4

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,12 @@ jobs:
174174
;;
175175
esac
176176
177+
- name: "Download: DirectX binaries for windows + make"
178+
if: matrix.target == 'windows' && matrix.build_system != 'cmake' && matrix.build_system != 'cmake-mingw'
179+
run: |
180+
curl -fsSL --retry 3 --retry-delay 5 -o /tmp/dx.zip https://github.com/microsoft/DirectXShaderCompiler/releases/download/v1.8.2505.1/dxc_2025_07_14.zip
181+
7z x /tmp/dx.zip -oinclude/dx
182+
177183
- name: "Install: GCC 14"
178184
if: matrix.build_system == 'makegcc14'
179185
run: |
@@ -184,7 +190,7 @@ jobs:
184190
gcc --version
185191
186192
- name: Install haxe
187-
uses: krdlab/setup-haxe@f0a0baa8ccdb1fe4fc316c8f30eb3ca77aa4ea4e
193+
uses: krdlab/setup-haxe@v2
188194
with:
189195
haxe-version: latest
190196

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,12 @@ CC=i686-pc-cygwin-gcc
139139
BUILD_DIR = Release
140140
VS_SDL_LIBRARY ?= include/sdl/lib/x86/SDL2.dll
141141
VS_OPENAL_LIBRARY ?= include/openal/bin/Win32/soft_oal.dll
142+
VS_DX_LIBRARY ?= include/dx/bin/x86/dxcompiler.dll include/dx/bin/x86/dxil.dll
142143
else
143144
BUILD_DIR = x64/Release
144145
VS_SDL_LIBRARY ?= include/sdl/lib/x64/SDL2.dll
145146
VS_OPENAL_LIBRARY ?= include/openal/bin/Win64/soft_oal.dll
147+
VS_DX_LIBRARY ?= include/dx/bin/x64/dxcompiler.dll include/dx/bin/x64/dxil.dll
146148
endif
147149

148150
ifneq (, $(findstring MINGW64, $(UNAME)))
@@ -359,6 +361,7 @@ release_win:
359361
cp $(VS_RUNTIME_LIBRARY) $(PACKAGE_NAME)
360362
cp $(VS_SDL_LIBRARY) $(PACKAGE_NAME)
361363
cp $(VS_OPENAL_LIBRARY) $(PACKAGE_NAME)/OpenAL32.dll
364+
cp $(VS_DX_LIBRARY) $(PACKAGE_NAME)
362365
# 7z switches: https://sevenzip.osdn.jp/chm/cmdline/switches/
363366
7z a -spf -y -mx9 -bt $(PACKAGE_NAME).zip $(PACKAGE_NAME)
364367
rm -rf $(PACKAGE_NAME)

0 commit comments

Comments
 (0)