@@ -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 :
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 : |
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)
0 commit comments