-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Sync VoodooGPIO with AMD support * Update VoodooGPIO and VoodooI2CHID * Github Actions CI workflow (#538) * Create objective-c-xcode.yml * Update objective-c-xcode.yml * objective-c-xcode.yml: Update setup tools to fix pyparsing * objective-c-xcode.yml: try fixing pyparsing directly * objective-c-xcode.yml: use my fixed cldoc * objective-c-xcode.yml: manually updating pyparsing was always useless * Clean up CI/CD (#553) * Drop CircleCI * Switch back to VoodooI2C cldoc fork * Set the pip3 --break-system-packages flag to potentially fix CD/CD * Run actions on all PRs and branches * Remove cldoc step * GitHub Action (#561) * Create main.yml * Remove Pip Cache * Fix Lint in VoodooI2CController.cpp * Fix VoodooI2CControllerDriver Lint * Try cursorkind=350 * Only allow one job * Add separate lint and doc tasks, add archive script * Fix generate description output, missing dependencies * Use -r in pip install * build_docs -> build_doc * Build VoodooInput for docs * Release try two * Test commit * Test commit 2 * Fix num commits and last_ten_commits * Set number of max commits * Fetch tags * Get tags try 2 * Fix git fetch * Revert back to using the published trigger * Save off last tagged commit * I forgot to save the conflict resolution :( * Fix VoodooI2CHID submodule commit * Update to latest master for VoodooI2CHID * Update cldoc to clang 15 * Update cldoc to VoodooI2C master * Fix NUM_COMMITS * Echo release notes * Make sure to output to * Account for multiline output * checkout depth 500 * Multi-line input for release action * Use softprops release action * Use file to store changelog * Upload docs to github pages * Fix repository name match * Fix upload always running (oops) * Add confidence bit for palm rejection (#547) * Add confidence bit for palm rejection * Set Confidence bit by default * Remove logging * Use constant for palm type * Update Cldoc repo git link (#562) * Sync satellites and dependencies * Update GitHub actions from v3 to v4 * Remove unused extra GitHub pipeline * Only run push builds when commits are pushed to master --------- Co-authored-by: Kishor Prins <kprinssu@kishor-tessen.local> Co-authored-by: newperson1746 <danielcrodriguez2012@gmail.com> Co-authored-by: Avery Black <avery.c.black@gmail.com>
- Loading branch information
1 parent
f9f703b
commit 4f3206b
Showing
14 changed files
with
267 additions
and
111 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
workflow_dispatch: | ||
release: | ||
types: [published] | ||
|
||
env: | ||
PROJECT_TYPE: KEXT | ||
|
||
jobs: | ||
build: | ||
name: Kext Build | ||
runs-on: macos-latest | ||
env: | ||
JOB_TYPE: BUILD | ||
steps: | ||
- name: Checkout VoodooI2C | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
fetch-depth: 500 | ||
- name: Checkout MacKernelSDK | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: acidanthera/MacKernelSDK | ||
path: MacKernelSDK | ||
- name: CI Bootstrap | ||
run: | | ||
src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/ocbuild/master/ci-bootstrap.sh) && eval "$src" || exit 1 | ||
- name: VoodooInput Bootstrap | ||
run: | | ||
src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/VoodooInput/master/VoodooInput/Scripts/bootstrap.sh) && eval "$src" && mv VoodooInput Dependencies | ||
- name: Fetch tags | ||
run: git fetch --tags --recurse-submodules=no | ||
|
||
- name: Get Commit SHA | ||
id: vars | ||
run: | | ||
echo "sha_short=$(git rev-parse --short=8 ${{ github.sha }})" >> $GITHUB_OUTPUT | ||
- name: Build Debug VoodooI2C | ||
run: xcodebuild -workspace VoodooI2C.xcworkspace -scheme VoodooI2C -derivedDataPath build -jobs 1 -configuration Debug | ||
- name: Build Release VoodooI2C | ||
run: xcodebuild -workspace VoodooI2C.xcworkspace -scheme VoodooI2C -derivedDataPath build -jobs 1 -configuration Release | ||
|
||
- name: Generate Release Description | ||
if: github.event_name == 'release' | ||
run: | | ||
LAST_TAG=$(git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1`) | ||
LAST_TEN_COMMITS=$(git log --oneline --pretty=format:"%h - %s (%an)" ${LAST_TAG}..@ -n 10) | ||
NEW_LINES=$'\n\n\n' | ||
NUM_COMMITS="$(git rev-list ${LAST_TAG}..@ --count)" | ||
echo "Since the last release there have been ${NUM_COMMITS} commit(s). The descriptions for the first (at most) 10 of these are as follows${NEW_LINES}${LAST_TEN_COMMITS}" >> ./changelog.md | ||
- uses: softprops/action-gh-release@v2 | ||
if: github.event_name == 'release' | ||
with: | ||
files: build/Build/Products/*/*.zip | ||
body_path: ./changelog.md | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: VoodooI2C-${{ steps.vars.outputs.sha_short }} | ||
path: build/Build/Products/*/*.zip | ||
|
||
docs: | ||
name: Docs | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout VoodooI2C | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
- name: Checkout MacKernelSDK | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: acidanthera/MacKernelSDK | ||
path: MacKernelSDK | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
cache: 'pip' | ||
- name: Install python dependencies | ||
run: pip3 install -r requirements.txt | ||
|
||
- name: VoodooInput Bootstrap | ||
run: | | ||
src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/VoodooInput/master/VoodooInput/Scripts/bootstrap.sh) && eval "$src" && mv VoodooInput Dependencies | ||
- name: Build Documentation | ||
run: ./scripts/build_doc.sh | ||
|
||
- name: Package Documentation | ||
run: zip -r Docs.zip ./docs/* | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: VoodooI2C-Docs | ||
path: Docs.zip | ||
|
||
- name: Upload Docs to Github Pages | ||
if: ${{ (github.event_name == 'release') && (github.event.repository.full_name == 'VoodooI2C/VoodooI2C') }} | ||
working-directory: ./docs | ||
env: | ||
DOCUMENTATION_TOKEN: ${{ secrets.DOCUMENTATION_TOKEN }} | ||
USERNAME: github-actions[bot] | ||
run: | | ||
git init . | ||
git config user.name "$USERNAME" | ||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git add -A | ||
git commit -m "${{ github.ref_name}} Documentation" | ||
git push -f https://$USERNAME:$DOCUMENTATION_TOKEN@github.com/VoodooI2C/VoodooI2C.github.io.git master | ||
lint: | ||
name: Lint | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout VoodooI2C | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
- name: Checkout MacKernelSDK | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: acidanthera/MacKernelSDK | ||
path: MacKernelSDK | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
cache: 'pip' | ||
- name: Install python dependencies | ||
run: pip3 install -r requirements.txt | ||
- name: Run Lint | ||
run: ./scripts/run_lint.sh |
Submodule VoodooGPIO
updated
20 files
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
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
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
Submodule VoodooI2CELAN
updated
2 files
+49 −43 | VoodooI2CELAN/VoodooI2CELANTouchpadDriver.cpp | |
+3 −10 | VoodooI2CELAN/VoodooI2CELANTouchpadDriver.hpp |
Submodule VoodooI2CHID
updated
6 files
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cpplint | ||
cldoc @ git+https://github.com/VoodooI2C/cldoc.git |
Oops, something went wrong.