|
15 | 15 | branches: |
16 | 16 | - main |
17 | 17 |
|
18 | | -# improve CI concurrency by automatically cancelling outdated jobs |
19 | 18 | concurrency: |
20 | 19 | group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} |
21 | 20 | cancel-in-progress: true |
22 | 21 |
|
23 | 22 | jobs: |
24 | | - |
25 | | -# --------------------------------------------------------------------------------------- |
26 | | - |
27 | 23 | build-and-test: |
28 | 24 | name: x64-windows |
29 | 25 |
|
|
45 | 41 |
|
46 | 42 | steps: |
47 | 43 | - name: Checkout Code |
48 | | - uses: actions/checkout@v4 # https://github.com/actions/checkout |
| 44 | + uses: actions/checkout@v4 |
49 | 45 | with: |
50 | 46 | submodules: recursive |
51 | 47 |
|
|
63 | 59 | working-directory: vcpkg |
64 | 60 | run: .\bootstrap-vcpkg.bat |
65 | 61 |
|
66 | | - # lukka/run-vcpkg@v11 does not have a working cache implementation. |
67 | 62 | - name: Restore vcpkg binary-cache |
68 | 63 | id: restore-vcpkg-cache |
69 | 64 | uses: actions/cache/restore@v4 |
|
74 | 69 | - name: CMake - Configure |
75 | 70 | run: cmake --preset=x64-windows . |
76 | 71 |
|
77 | | - # Always save, so that even a partial builded cache get saved for the next time. |
78 | 72 | - name: Save vcpkg binary-cache |
79 | 73 | uses: actions/cache/save@v4 |
80 | 74 | id: save-vcpkg-cache |
|
98 | 92 | run: .\hktests-rel.exe --gtest_output=xml:hktests-rel.xml |
99 | 93 |
|
100 | 94 | - name: Publish Test Results |
101 | | - uses: EnricoMi/publish-unit-test-result-action/windows@v2 # https://github.com/EnricoMi/publish-unit-test-result-action |
| 95 | + uses: EnricoMi/publish-unit-test-result-action/windows@v2 |
102 | 96 | if: always() && github.event_name == 'push' && github.ref == 'refs/heads/main' |
103 | 97 | with: |
104 | 98 | files: | |
@@ -126,7 +120,6 @@ jobs: |
126 | 120 | --working_dir=${{env.DEBUG_BUILD_DIR}} ^ |
127 | 121 | -- ${{env.DEBUG_BUILD_DIR}}\hktests-dbg |
128 | 122 | |
129 | | - # retry uploading to codecov with limit to workaround flaky upload issue |
130 | 123 | - name: Upload CodeCoverage Report to codecov.io (Debug) |
131 | 124 | if: github.event_name == 'push' && github.ref == 'refs/heads/main' |
132 | 125 | uses: codecov/codecov-action@v5 |
|
0 commit comments