Skip to content

Commit 17c15e6

Browse files
committed
Update c-cpp.yml
1 parent dd16625 commit 17c15e6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/c-cpp.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ jobs:
4646
# path: .cache/${{ matrix.macos-version }}/compile_commands.json
4747
# key: ${{ matrix.macos-version }}-jsondb
4848

49-
# - name: Build XNU JSON compilation database
50-
# if: steps.cache-jsondb.outputs.cache-hit != 'true'
51-
# run: |
52-
# MACOS_VERSION='${{ matrix.macos-version }}' MACHINE_CONFIG=VMAPPLE JSONDB=1 bash -x build.sh
49+
- name: Build XNU JSON compilation database
50+
if: steps.cache-jsondb.outputs.cache-hit != 'true'
51+
run: |
52+
MACOS_VERSION='${{ matrix.macos-version }}' MACHINE_CONFIG=VMAPPLE JSONDB=1 bash -x build.sh
53+
zip -r xnu-${{ matrix.macos-version }}-jsondb.zip .cache/${{ matrix.macos-version }}/compile_commands.json
5354
5455
- name: Build XNU
5556
run: |
@@ -86,4 +87,5 @@ jobs:
8687
gh release upload v${{ matrix.macos-version }} --clobber kernel.release.vmapple
8788
gh release upload v${{ matrix.macos-version }} --clobber kernel.release.vmapple.sha256
8889
gh release upload v${{ matrix.macos-version }} --clobber xnu-codeql.zip
89-
gh release upload v${{ matrix.macos-version }} --clobber xnu-codeql.zip.sha256
90+
gh release upload v${{ matrix.macos-version }} --clobber xnu-codeql.zip.sha256
91+
gh release upload v${{ matrix.macos-version }} --clobber xnu-${{ matrix.macos-version }}-jsondb.zip

0 commit comments

Comments
 (0)