add gunit tests to github action #456
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: CMake | |
| on: | |
| push: | |
| branches: [ '*' ] | |
| pull_request: | |
| branches: [ master ] | |
| workflow_dispatch: | |
| jobs: | |
| Win_jorb: | |
| runs-on: windows-latest | |
| timeout-minutes: 4 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: 'true' | |
| - name: Install Vulkan SDK | |
| uses: humbletim/[email protected] | |
| with: | |
| vulkan-query-version: 1.4.304.1 | |
| vulkan-components: Vulkan-Headers, Vulkan-Loader | |
| vulkan-use-cache: false | |
| - name: configure | |
| run: cmake -B build_win64 -G "Visual Studio 17 2022" -A x64 -DVKVG_RECORDING=false -DVKVG_SVG=false -DBUILD_SHARED_LIBS=OFF | |
| - name: build win64 | |
| run: cmake --build build_win64 --parallel | |
| linux_jorb: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| build_config: ['Release'] | |
| defaults: | |
| run: | |
| shell: bash | |
| env: | |
| VULKAN_SDK: ${{ github.workspace }}/VulkanSDK/x86_64 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: 'krOoze/vk_sdk_lite' | |
| path: 'VulkanSDK' | |
| ref: linux | |
| persist-credentials: false | |
| - run: echo "${{ env.VULKAN_SDK }}/bin" >> $GITHUB_PATH | |
| - run: sudo apt update && sudo apt install xorg-dev libglfw3-dev xxd | |
| - uses: actions/checkout@v4 | |
| with: | |
| path: 'source' | |
| persist-credentials: false | |
| submodules: 'true' | |
| - run: mkdir -p source/build | |
| - run: cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_config }} -G "Unix Makefiles" .. -DVKVG_RECORDING=false -DVKVG_SVG=false | |
| working-directory: source/build | |
| - run: cmake --build . --config ${{ matrix.build_config }} | |
| working-directory: source/build | |
| - run: ls -R .. | |
| - run: build/gunit_tests/unit_tests | |
| working-directory: source/build | |
| mac_jorb: | |
| runs-on: macos-latest | |
| strategy: | |
| matrix: | |
| build_config: ['Release'] | |
| defaults: | |
| run: | |
| shell: bash | |
| env: | |
| VULKAN_SDK: ${{ github.workspace }}/VulkanSDK/macOS | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: 'krOoze/vk_sdk_lite' | |
| path: 'VulkanSDK' | |
| ref: macos | |
| persist-credentials: false | |
| - run: echo "${{ env.VULKAN_SDK }}/bin" >> $GITHUB_PATH | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: 'true' | |
| path: 'source' | |
| persist-credentials: false | |
| - run: mkdir -p source/build | |
| - run: cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_config }} .. -DVKVG_RECORDING=false -DVKVG_SVG=false | |
| working-directory: source/build | |
| - run: cmake --build . --config ${{ matrix.build_config }} | |
| working-directory: source/build |