Skip to content

Commit 8b6cf39

Browse files
committed
DX
1 parent 163b569 commit 8b6cf39

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.github/workflows/ppuc.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,29 @@ jobs:
2626
echo "${TAG}"
2727
echo "tag=${TAG}" >> $GITHUB_OUTPUT
2828
29+
dxsdk:
30+
name: DirectX SDK
31+
runs-on: windows-latest
32+
steps:
33+
- id: cache
34+
uses: actions/cache@v4
35+
with:
36+
path: DXSDK
37+
key: cache-dxsdk
38+
- if: steps.cache.outputs.cache-hit != 'true'
39+
name: Create Cache
40+
run: |
41+
curl -sL https://download.microsoft.com/download/a/e/7/ae743f1f-632b-4809-87a9-aa1bb3458e31/DXSDK_Jun10.exe -o DXSDK_Jun10.exe
42+
7z x DXSDK_Jun10.exe DXSDK/Include -otmp
43+
7z x DXSDK_Jun10.exe DXSDK/Lib -otmp
44+
mv tmp/DXSDK DXSDK
45+
rm -fR DXSDK_Jun10.exe tmp
46+
ls -Ra DXSDK
47+
2948
build:
3049
name: Build ppuc-${{ matrix.platform }}-${{ matrix.arch }}
3150
runs-on: ${{ matrix.os }}
32-
needs: [ version ]
51+
needs: [ version, dxsdk ]
3352
strategy:
3453
fail-fast: false
3554
matrix:
@@ -57,6 +76,11 @@ jobs:
5776
- if: (matrix.platform == 'win')
5877
name: Add msbuild to path (win runner)
5978
uses: microsoft/setup-msbuild@v2
79+
- if: (matrix.platform == 'win')
80+
uses: actions/cache@v4
81+
with:
82+
path: DXSDK
83+
key: cache-dxsdk
6084
- if: (matrix.platform == 'macos')
6185
name: Add autoconf and automake (mac runner)
6286
run: |
@@ -67,6 +91,9 @@ jobs:
6791
- if: (!(matrix.platform == 'linux' && matrix.arch == 'aarch64'))
6892
name: Build ppuc-${{ matrix.platform }}-${{ matrix.arch }}
6993
run: |
94+
if [[ "${{ matrix.platform }}" == "win" ]]; then
95+
export DXSDK_DIR="${GITHUB_WORKSPACE}/DXSDK"
96+
fi
7097
./platforms/${{ matrix.platform }}/${{ matrix.arch }}/build.sh
7198
- if: (matrix.platform == 'linux' && matrix.arch == 'aarch64')
7299
name: Build ppuc-${{ matrix.platform }}-${{ matrix.arch }} (arm runner)

platforms/win/x64/external.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ if [ "${SDL3_EXPECTED_SHA}" != "${SDL3_FOUND_SHA}" ]; then
4747
-DSDL_SHARED=ON \
4848
-DSDL_STATIC=OFF \
4949
-DSDL_TEST_LIBRARY=OFF \
50-
-DSDL_JOYSTICK=OFF \
5150
-B build
5251
cmake --build build --config ${BUILD_TYPE}
5352
cd ..

0 commit comments

Comments
 (0)