Experiment with github actions #4
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: CI | |
| on: | |
| push: | |
| #branches: [ main ] | |
| pull_request: | |
| #branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [windows-latest] | |
| build-type: [Release] | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Configure (Windows - Visual Studio) | |
| if: runner.os == 'Windows' | |
| shell: pwsh | |
| run: | | |
| #cd main\midnight | |
| #$env:AX_ROOT = "${{ github.workspace }}\main\midnight" | |
| #cmake -S . -B build -G "Visual Studio 17 2022" -A x64 -DTME=LOM -DAX_ROOT="$env:AX_ROOT" -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} | |
| cd main\midnight\build.win32\midnight | |
| mkdir vs_project && cd vs_project | |
| cmake ..\..\.. -G"Visual Studio 17 2022" -A Win32 -DTME:string=LOM | |
| - name: Build (Windows) | |
| if: runner.os == 'Windows' | |
| run: | | |
| cd main\midnight | |
| cmake --build build --config ${{ matrix.build-type }} -- /m | |
| - name: Run tests (Windows) | |
| if: runner.os == 'Windows' | |
| run: | | |
| cd main\midnight | |
| ctest --test-dir build -C ${{ matrix.build-type }} --output-on-failure |