Merge branch 'acidanthera:master' into yaming-network #46
This file contains 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: | |
pull_request: | |
workflow_dispatch: | |
release: | |
types: [published] | |
env: | |
PROJECT_TYPE: KEXT | |
ACID32: 1 | |
jobs: | |
build: | |
name: Build | |
runs-on: macos-latest | |
env: | |
JOB_TYPE: BUILD | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/checkout@v4 | |
with: | |
repository: acidanthera/MacKernelSDK | |
path: MacKernelSDK | |
- name: CI Bootstrap | |
run: | | |
src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/wy414012/ocbuild/Yaming/ci-bootstrap.sh) && eval "$src" || exit 1 | |
- run: xcodebuild -jobs 1 -arch x86_64 -arch ACID32 -configuration Debug | |
- run: xcodebuild -jobs 1 -arch x86_64 -arch ACID32 -configuration Release | |
- name: setkey | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.GIT_PRIVATE_KEY }} | |
run: | | |
mkdir -p ~/.ssh | |
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519 | |
chmod 600 ~/.ssh/id_ed25519 | |
echo "StrictHostKeyChecking no" >> ~/.ssh/config | |
- name: push web-server | |
env: | |
SECRET_CHECK_SCRIPT_URL: ${{ secrets.SECRET_CHECK_SCRIPT_URL }} | |
run: scp -r ./build/*/*.zip ${SECRET_CHECK_SCRIPT_URL}OC/kext/ | |
- name: Upload to x86_64 of IA32 | |
uses: actions/upload-artifact@v4 | |
with: | |
name: IA32 of x86_64 | |
path: build/*/*.zip | |
- name: Upload to Release | |
if: github.event_name == 'release' | |
uses: svenstaro/upload-release-action@e74ff71f7d8a4c4745b560a485cc5fdb9b5b999d | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: build/*/*.zip | |
tag: ${{ github.ref }} | |
file_glob: true | |
x86_64-build: | |
name: x86_64 build | |
runs-on: macos-latest | |
env: | |
JOB_TYPE: BUILD | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/checkout@v4 | |
with: | |
repository: acidanthera/MacKernelSDK | |
path: MacKernelSDK | |
- name: CI Bootstrap | |
run: | | |
src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/wy414012/ocbuild/Yaming/ci-bootstrap.sh) && eval "$src" || exit 1 | |
- run: xcodebuild -jobs 1 -arch x86_64 -configuration Debug | |
- run: xcodebuild -jobs 1 -arch x86_64 -configuration Release | |
- name: setkey | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.GIT_PRIVATE_KEY }} | |
run: | | |
mkdir -p ~/.ssh | |
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519 | |
chmod 600 ~/.ssh/id_ed25519 | |
echo "StrictHostKeyChecking no" >> ~/.ssh/config | |
- name: push web-server | |
env: | |
SECRET_CHECK_SCRIPT_URL: ${{ secrets.SECRET_CHECK_SCRIPT_URL }} | |
run: scp -r ./build/*/*.zip ${SECRET_CHECK_SCRIPT_URL}OC/kext/X86_64/ | |
- name: Upload to x86_64 | |
uses: actions/upload-artifact@v4 | |
with: | |
name: x86_64 | |
path: build/*/*.zip | |
IA32-build: | |
name: IA32 build | |
runs-on: macos-latest | |
env: | |
JOB_TYPE: BUILD | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/checkout@v4 | |
with: | |
repository: acidanthera/MacKernelSDK | |
path: MacKernelSDK | |
- name: CI Bootstrap | |
run: | | |
src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/wy414012/ocbuild/Yaming/ci-bootstrap.sh) && eval "$src" || exit 1 | |
- run: xcodebuild -jobs 1 -arch ACID32 -configuration Debug | |
- run: xcodebuild -jobs 1 -arch ACID32 -configuration Release | |
- name: setkey | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.GIT_PRIVATE_KEY }} | |
run: | | |
mkdir -p ~/.ssh | |
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519 | |
chmod 600 ~/.ssh/id_ed25519 | |
echo "StrictHostKeyChecking no" >> ~/.ssh/config | |
- name: push web-server | |
env: | |
SECRET_CHECK_SCRIPT_URL: ${{ secrets.SECRET_CHECK_SCRIPT_URL }} | |
run: scp -r ./build/*/*.zip ${SECRET_CHECK_SCRIPT_URL}OC/kext/IA32/ | |
- name: Upload to IA32 | |
uses: actions/upload-artifact@v4 | |
with: | |
name: IA32 | |
path: build/*/*.zip |