Skip to content

Commit d0e0aa9

Browse files
authored
Update GitHub workflow to (hopefully) work (#4812)
There were a few things missing in the initial attempt at this workflow. I left off the file extension for the CMake cache file, and also forgot to initialize the submodules. Additionally using make is... slow. Using make `-j` causes the VM to run out of memory. To resolve those issues I'm installing ninja and using ninja instead. I'm also setting `LLVM_USE_LINKER=lld` to reduce linker memory usage and `LLVM_PARALLEL_LINK_JOBS=1` to only run one link at a time. I've also added `--rerun-failed` and `--output-on-failure` to the ctest invocation so that if it fails we get some hopefully helpful output.
1 parent 14a55b7 commit d0e0aa9

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/coverage-gh-pages.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,20 @@ jobs:
2727
steps:
2828
- name: Checkout
2929
uses: actions/checkout@v3
30+
with:
31+
submodules: true
3032
- name: Setup Pages
3133
uses: actions/configure-pages@v2
34+
- name: Install dependencies
35+
run: sudo apt install -y ninja-build
3236
- name: Configure
33-
run: mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DDXC_COVERAGE=On -C ${{github.workspace}}/cmake/caches/PredefinedParams -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ ${{github.workspace}}
37+
run: mkdir build && cd build && cmake -G Ninja -DLLVM_PARALLEL_LINK_JOBS=1 -DLLVM_USE_LINKER=lld -DCMAKE_BUILD_TYPE=Release -DDXC_COVERAGE=On -C ${{github.workspace}}/cmake/caches/PredefinedParams.cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ ${{github.workspace}}
3438
- name: Build
35-
run: cd build && make
39+
run: cd build && ninja
3640
- name: Test
37-
run: cd build && ctest
41+
run: cd build && ctest --rerun-failed --output-on-failure
3842
- name: Generate Report
39-
run: cd build && make generate-coverage-report
43+
run: cd build && ninja generate-coverage-report
4044
- name: Upload artifact
4145
uses: actions/upload-pages-artifact@v1
4246
with:

0 commit comments

Comments
 (0)