Skip to content

Commit

Permalink
ci: upload release artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Feb 10, 2024
1 parent 5d4e01f commit 4106b11
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 13 deletions.
34 changes: 22 additions & 12 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,26 @@ jobs:
run: |
brew update
brew install bash blacktop/tap/ipsw
# sudo xcode-select -s /Applications/Xcode_14.3.1.app
sudo ipsw dl kdk --host --install
sudo xcode-select -s /Applications/Xcode_15.2.app
- name: kmutil help # This is to check for what flags are available
run: |
sysctl -n kern.bootobjectspath || true
sw_vers
kmutil inspect
- name: Cache JSONDB
id: cache-jsondb
uses: actions/cache@v4
with:
path: .cache/${{ matrix.macos-version }}/compile_commands.json
key: ${{ matrix.macos-version }}-jsondb
# - name: Cache JSONDB
# id: cache-jsondb
# uses: actions/cache@v4
# with:
# path: .cache/${{ matrix.macos-version }}/compile_commands.json
# key: ${{ matrix.macos-version }}-jsondb

- name: Build XNU JSON compilation database
if: steps.cache-jsondb.outputs.cache-hit != 'true'
run: |
MACOS_VERSION='${{ matrix.macos-version }}' MACHINE_CONFIG=VMAPPLE JSONDB=1 bash -x build.sh
# - name: Build XNU JSON compilation database
# if: steps.cache-jsondb.outputs.cache-hit != 'true'
# run: |
# MACOS_VERSION='${{ matrix.macos-version }}' MACHINE_CONFIG=VMAPPLE JSONDB=1 bash -x build.sh

- name: Build XNU
run: |
Expand All @@ -65,4 +65,14 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: xnu-codeql-${{ matrix.macos-version }}
path: xnu-codeql.zip
path: xnu-codeql.zip

- name: Release
env:
GH_TOKEN: ${{ github.token }}
run: |
ls -lah
gh release upload v${{ matrix.macos-version }} --clobber fakeroot/System/Library/Kernels/kernel.release.vmapple
gh release upload v${{ matrix.macos-version }} --clobber kernel.release.vmapple.sha256
gh release upload v${{ matrix.macos-version }} --clobber xnu-codeql.zip
gh release upload v${{ matrix.macos-version }} --clobber xnu-codeql.zip.sha256
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function error() {
: ${MACHINE_CONFIG:=VMAPPLE}
: ${MACOS_VERSION:=""}
: ${JSONDB:=0}
: ${BUILDKC:=0}
: ${CODEQL:=0}
: ${KC_FILTER:='com.apple.driver.SEPHibernation'}

Expand Down Expand Up @@ -477,7 +478,7 @@ main() {
shift
;;
-k | --kc)
export BUILDKC=1
BUILDKC=1
shift
;;
*)
Expand Down

0 comments on commit 4106b11

Please sign in to comment.