WIP: SDL_Mixer sound player device #140
Workflow file for this run
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 | |
| on: push | |
| jobs: | |
| compile-msvc-x86-release: | |
| name: Windows MSVC x86 Release | |
| runs-on: windows-latest | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: CMake Generate | |
| shell: cmd | |
| run: | | |
| call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x86 | |
| cmake --preset x86-msvc-relwithdebinfo -D3DMM_PACKAGE_WIX=OFF | |
| - name: CMake Build | |
| shell: cmd | |
| run: | | |
| call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x86 | |
| cmake --build build/x86-msvc-relwithdebinfo --target tools studio tests | |
| - name: Run tests | |
| shell: cmd | |
| run: | | |
| ctest --test-dir build/x86-msvc-relwithdebinfo --output-on-failure --timeout 60 | |
| - name: CMake Install | |
| shell: cmd | |
| run: | | |
| cmake --install build/x86-msvc-relwithdebinfo --prefix dist/x86-msvc-relwithdebinfo | |
| - name: Upload debug symbols | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: 3DMMEx Windows x86 debug symbols | |
| path: | | |
| build/x86-msvc-relwithdebinfo/src/3dmovie.pdb | |
| build/x86-msvc-relwithdebinfo/src/chomp/studio/*.i | |
| - name: Upload Release | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: 3DMMEx Windows x86 | |
| path: | | |
| dist/x86-msvc-relwithdebinfo | |
| compile-clang-x86-debug: | |
| name: Windows Clang x86 Debug | |
| runs-on: windows-latest | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: Use Visual Studio clang | |
| # Move the separate Github Action LLVM install out of the way to prevent it from being | |
| # detected by cmake: this causes us to fall back to the version provided by VS instead | |
| run: | | |
| Rename-Item -path "C:\Program Files\LLVM" -NewName "LLVM.ignore" | |
| - name: CMake Generate | |
| shell: cmd | |
| run: | | |
| call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x86 | |
| cmake --preset x86-clangcl-debug -D3DMM_PACKAGE_WIX=OFF | |
| - name: CMake Build | |
| shell: cmd | |
| run: | | |
| call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x86 | |
| cmake --build build/x86-clangcl-debug --target tests | |
| - name: Run tests | |
| shell: cmd | |
| run: | | |
| ctest --test-dir build/x86-clangcl-debug --output-on-failure --timeout 60 | |
| compile-msvc-x64-debug: | |
| name: Windows MSVC x64 Debug | |
| runs-on: windows-latest | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: CMake Generate | |
| shell: cmd | |
| run: | | |
| call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x64 | |
| cmake --preset x64-msvc-debug -D3DMM_PACKAGE_WIX=OFF | |
| - name: CMake Build | |
| shell: cmd | |
| run: | | |
| call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x64 | |
| cmake --build build/x64-msvc-debug --target tests | |
| - name: Run tests | |
| shell: cmd | |
| run: | | |
| ctest --test-dir build/x64-msvc-debug --output-on-failure --timeout 60 | |
| compile-sdl-msvc-x64-debug: | |
| name: Windows SDL MSVC x64 Debug | |
| runs-on: windows-latest | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: CMake Generate | |
| shell: cmd | |
| run: | | |
| call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x64 | |
| cmake --preset sdl-x64-msvc-debug -D3DMM_PACKAGE_WIX=OFF | |
| - name: CMake Build | |
| shell: cmd | |
| run: | | |
| call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x64 | |
| cmake --build build/sdl-x64-msvc-debug --target studio tests | |
| - name: Run tests | |
| shell: cmd | |
| run: | | |
| ctest --test-dir build/sdl-x64-msvc-debug --output-on-failure --timeout 60 | |
| compile-clang-x64-release: | |
| name: Windows Clang x64 Release | |
| runs-on: windows-latest | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: Use Visual Studio clang | |
| # Move the separate Github Action LLVM install out of the way to prevent it from being | |
| # detected by cmake: this causes us to fall back to the version provided by VS instead | |
| run: | | |
| Rename-Item -path "C:\Program Files\LLVM" -NewName "LLVM.ignore" | |
| - name: CMake Generate | |
| shell: cmd | |
| run: | | |
| call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x64 | |
| cmake --preset x64-clangcl-relwithdebinfo -D3DMM_PACKAGE_WIX=OFF | |
| - name: CMake Build | |
| shell: cmd | |
| run: | | |
| call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvarsall.bat" x64 | |
| cmake --build build/x64-clangcl-relwithdebinfo --target tools studio tests | |
| - name: Run tests | |
| shell: cmd | |
| run: | | |
| ctest --test-dir build/x64-clangcl-relwithdebinfo --output-on-failure --timeout 60 | |
| - name: CMake Install | |
| shell: cmd | |
| run: | | |
| cmake --install build/x64-clangcl-relwithdebinfo --prefix dist/x64-clangcl-relwithdebinfo | |
| move dist\x64-clangcl-relwithdebinfo\3dmovie.exe dist\x64-clangcl-relwithdebinfo\3dmovie-x64.exe | |
| move build\x64-clangcl-relwithdebinfo\src\3dmovie.pdb build\x64-clangcl-relwithdebinfo\src\3dmovie-x64.pdb | |
| - name: Upload debug symbols | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: 3DMMEx Windows x64 debug symbols | |
| path: | | |
| build/x64-clangcl-relwithdebinfo/src/3dmovie-x64.pdb | |
| build/x64-clangcl-relwithdebinfo/src/chomp/studio/*.i | |
| - name: Upload Release | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: 3DMMEx Windows x64 | |
| path: | | |
| dist/x64-clangcl-relwithdebinfo | |
| compile-gcc-x86_64-linux-release: | |
| name: Linux gcc x86_64 Debug | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install Packages | |
| run: | | |
| sudo apt-get update && | |
| sudo apt-get install -y g++ cmake libsdl2-dev libsdl2-ttf-dev libgtk-3-dev zenity ninja-build | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: CMake Generate | |
| run: | | |
| cmake --preset sdl-x86_64-gcc-linux-debug | |
| - name: CMake Build | |
| run: | | |
| cmake --build build/sdl-x86_64-gcc-linux-debug --target tools studio tests | |
| - name: Run tests | |
| run: | | |
| ctest --test-dir build/sdl-x86_64-gcc-linux-debug --output-on-failure --timeout 60 | |
| - name: CMake Install | |
| run: | | |
| cmake --install build/sdl-x86_64-gcc-linux-debug --prefix dist/sdl-x86_64-gcc-linux-debug | |
| - name: Upload debug files | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: 3DMMEx Linux gcc x86_64 debug files | |
| path: | | |
| build/sdl-x86_64-gcc-linux-debug/src/chomp/studio/*.i | |
| - name: Upload Debug | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: 3DMMEx Linux gcc x86_64 Debug | |
| path: | | |
| dist/sdl-x86_64-gcc-linux-debug |