chore: update steam sdk #423
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| | |
| name: Build And Test | |
| on: [push, pull_request] | |
| permissions: | |
| contents: write | |
| jobs: | |
| publish-release: | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.ref, 'refs/tags/') | |
| needs: [build-win-x64, test-win-x64, test-build-samples] | |
| steps: | |
| - name: Download artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: build-win-x64 | |
| path: win-x64 | |
| - name: Pack | |
| run: | | |
| cd win-x64 | |
| zip -r ../win-x64.zip ./* | |
| find . -type f -name "*.pdb" -exec rm -f {} \; | |
| find . -type f -name "*.xml" -exec rm -f {} \; | |
| rm -rf ./core/mdk | |
| zip -r ../win-x64-no-mdk.zip ./* | |
| - name: Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: | | |
| win-x64.zip | |
| win-x64-no-mdk.zip | |
| win-x64/core/host/startup/steam/deadcells.exe | |
| test-win-x64: | |
| runs-on: windows-latest | |
| needs: build-win-x64 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10 | |
| - name: Download artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: build-win-x64 | |
| path: ctx/coremod | |
| - name: Copy hlboot | |
| run: | | |
| echo "DEAD_CELLS_GAME_PATH=$env:GITHUB_WORKSPACE/ctx" >> $env:GITHUB_ENV | |
| Copy-Item -Path ./hlboots/hlboot-opengl-steam.dat -Destination "./ctx/hlboot.dat" -Recurse -Force | |
| - name: Install MDK | |
| uses: dead-cells-core-modding/setup-mdk@main | |
| with: | |
| modcoreroot: ./ctx/coremod | |
| - name: Build ModCore | |
| run: | | |
| ./buildWin.ps1 -BuildNative 0 -BuildMDK 1 -BuildAssets 0 | |
| - name: Run Tests | |
| shell: pwsh | |
| run: | | |
| cd sources | |
| dotnet test | |
| test-build-samples: | |
| runs-on: windows-latest | |
| needs: build-win-x64 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10 | |
| - name: Download artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: build-win-x64 | |
| path: coremod | |
| - name: Install MDK | |
| uses: dead-cells-core-modding/setup-mdk@main | |
| with: | |
| modcoreroot: ./coremod | |
| - name: Build Samples | |
| run: | | |
| cd sample | |
| dotnet build -c Release | |
| - name: Upload | |
| uses: actions/upload-artifact@v4.6.0 | |
| with: | |
| name: build-samples | |
| path: ./sample/bin/* | |
| build-win-x64: | |
| runs-on: windows-latest | |
| strategy: | |
| matrix: | |
| debug: [ true, false ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10 | |
| - name: Setup MSVC | |
| uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| arch: x64 | |
| - name: Download Dependencies | |
| run: | | |
| cd ./sources/native/3rd/hashlink/include | |
| Invoke-WebRequest -Uri https://github.com/kcat/openal-soft/releases/download/1.23.1/openal-soft-1.23.1-bin.zip -OutFile ./OpenAL.zip | |
| Expand-Archive -LiteralPath ./OpenAL.zip -DestinationPath . -Force | |
| Move-Item -Path ./openal-soft-1.23.1-bin -Destination ./openal -Force | |
| Invoke-WebRequest -Uri https://www.libsdl.org/release/SDL2-devel-2.32.8-VC.zip -OutFile ./SDL.zip | |
| Expand-Archive -LiteralPath ./SDL.zip -DestinationPath . -Force | |
| Move-Item -Path ./SDL2-2.32.8 -Destination ./sdl -Force | |
| - name: Build Core | |
| run: | | |
| ./buildWin.ps1 -Debug $${{ matrix.debug }} -BuildAssets 0 | |
| - name: Install MDK | |
| uses: dead-cells-core-modding/setup-mdk@main | |
| with: | |
| modcoreroot: ./bin | |
| - name: Build Assets | |
| run: | | |
| ./buildWin.ps1 -Debug $${{ matrix.debug }} -BuildNative 0 -BuildMDK 0 -BuildCore 0 -BuildAssets 1 | |
| - name: Upload | |
| uses: actions/upload-artifact@v4.6.0 | |
| with: | |
| name: build-win-x64${{ matrix.debug == true && '-Debug' || '' }} | |
| path: ./bin/* |