forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into sjb/all-keyboard
* master: (291 commits) [keyboard] Prevent LED flicker when connecting AnnePro 2 (qmk#19709) Allow for CI builds to run for 23 hours, instead of 6. (part deux) (qmk#20095) Allow for CI builds to run for 23 hours, instead of 6. (qmk#20094) Add Chimera65 Hotswap keyboard (qmk#20038) [Keyboard] Add k83 (qmk#19896) Ketch LGUI/LALT key transposed on Minivan layout (qmk#20025) [Keyboard] Change pierce vendor ID (qmk#20088) Teleport native bugfix (changed F411CC wear levelling) (qmk#20090) Yet another adventure in trying to fit things into a 32U4 (qmk#20091) [Keyboard] Add Spleeb default and custom firmware (qmk#19481) [Keyboard] Add Binpad BN009 R2 3x3 macropad (qmk#19992) [Keyboard] VIA support for Pierce keyboard (qmk#20045) Caerdroia Keyboard Firmware (qmk#20036) Zeno pcb V0.0.4 update via + fileformatting (qmk#20023) Move macro3 to data-driven (qmk#20046) Fix incorrect matrix positions for RGB LEDs (qmk#20082) [Keyboard] Add Ortho48v2 Keyboard (qmk#18889) [Keyboard] Add tsubasa keyboard (qmk#19352) [Keyboard] update matrix pins for Polly40 (qmk#20002) [Keymap] add crkbd/keymaps/markstos (qmk#19010) ...
- Loading branch information
Showing
11,234 changed files
with
95,862 additions
and
112,873 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ core: | |
- tests/**/* | ||
- util/**/* | ||
- platforms/**/* | ||
- builddefs/**/* | ||
- Makefile | ||
- '*.mk' | ||
dependencies: | ||
|
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,40 @@ | ||
name: CI Builds | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
ci_builds: | ||
name: "CI Build" | ||
runs-on: self-hosted | ||
timeout-minutes: 1380 | ||
|
||
if: github.repository == 'qmk/qmk_firmware' | ||
|
||
strategy: | ||
matrix: | ||
keymap: | ||
- default | ||
- via | ||
|
||
container: qmkfm/qmk_cli | ||
|
||
steps: | ||
- name: Disable safe.directory check | ||
run : git config --global --add safe.directory '*' | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install dependencies | ||
run: pip3 install -r requirements.txt | ||
|
||
- name: Run `qmk mass-compile` (keymap ${{ matrix.keymap }}) | ||
run: qmk mass-compile -j $(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null) -km ${{ matrix.keymap }} |
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 |
---|---|---|
|
@@ -22,6 +22,9 @@ jobs: | |
container: qmkfm/qmk_cli | ||
|
||
steps: | ||
- name: Disable safe.directory check | ||
run : git config --global --add safe.directory '*' | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
@@ -30,16 +33,14 @@ jobs: | |
run: | | ||
pip3 install -r requirements-dev.txt | ||
- uses: trilom/[email protected] | ||
- name: Get changed files | ||
id: file_changes | ||
with: | ||
output: ' ' | ||
fileOutput: ' ' | ||
uses: tj-actions/changed-files@v35 | ||
|
||
- name: Run qmk formatters | ||
shell: 'bash {0}' | ||
run: | | ||
cat ~/files_added.txt ~/files_modified.txt > ~/files_changed.txt | ||
echo '${{ steps.file_changes.outputs.added_files}}' '${{ steps.file_changes.outputs.modified_files}}' > ~/files_changed.txt | ||
qmk format-c --core-only $(< ~/files_changed.txt) || true | ||
qmk format-python $(< ~/files_changed.txt) || true | ||
qmk format-text $(< ~/files_changed.txt) || true | ||
|
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 |
---|---|---|
|
@@ -15,31 +15,34 @@ jobs: | |
container: qmkfm/qmk_cli | ||
|
||
steps: | ||
- name: Disable safe.directory check | ||
run : git config --global --add safe.directory '*' | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install dependencies | ||
run: pip3 install -r requirements-dev.txt | ||
|
||
- uses: trilom/[email protected] | ||
- name: Get changed files | ||
id: file_changes | ||
with: | ||
output: '\n' | ||
uses: tj-actions/changed-files@v35 | ||
|
||
- name: Print info | ||
run: | | ||
git rev-parse --short HEAD | ||
echo ${{ github.event.pull_request.base.sha }} | ||
echo '${{ steps.file_changes.outputs.files}}' | ||
echo '${{ steps.file_changes.outputs.all_changed_files}}' | ||
- name: Run qmk lint | ||
shell: 'bash {0}' | ||
run: | | ||
QMK_CHANGES=$(echo -e '${{ steps.file_changes.outputs.files}}') | ||
QMK_CHANGES=$(echo -e '${{ steps.file_changes.outputs.all_changed_files}}' | sed 's/ /\n/g') | ||
QMK_KEYBOARDS=$(qmk list-keyboards) | ||
exit_code=0 | ||
for KB in $QMK_KEYBOARDS; do | ||
KEYBOARD_CHANGES=$(echo "$QMK_CHANGES" | grep -E '^(keyboards/'${KB}'/)') | ||
if [[ -z "$KEYBOARD_CHANGES" ]]; then | ||
|
@@ -55,6 +58,16 @@ jobs: | |
exit_code=$(($exit_code + $?)) | ||
fi | ||
done | ||
qmk format-text ${{ steps.file_changes.outputs.all_changed_files}} || true | ||
for file in ${{ steps.file_changes.outputs.all_changed_files}}; do | ||
if ! git diff --quiet $file; then | ||
echo "File '${file}' Requires Formatting" | ||
echo "::error file=${file}::Requires Formatting" | ||
exit_code=$(($exit_code + 1)) | ||
fi | ||
done | ||
if [[ $exit_code -gt 255 ]]; then | ||
exit 255 | ||
fi | ||
|
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,36 @@ | ||
name: PR Regenerate Files | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'data/constants/**' | ||
- 'lib/python/**' | ||
|
||
jobs: | ||
regen: | ||
runs-on: ubuntu-latest | ||
|
||
container: qmkfm/qmk_cli | ||
|
||
steps: | ||
- name: Disable safe.directory check | ||
run : git config --global --add safe.directory '*' | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Run qmk generators | ||
run: | | ||
util/regen.sh | ||
git diff | ||
- name: Fail when regeneration required | ||
run: | | ||
git diff | ||
for file in $(git diff --name-only); do | ||
echo "File '${file}' Requires Regeneration" | ||
echo "::error file=${file}::Requires Regeneration" | ||
done | ||
test -z "$(git diff --name-only)" |
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,46 @@ | ||
name: Regenerate Files | ||
|
||
permissions: | ||
contents: write | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
regen: | ||
runs-on: ubuntu-latest | ||
|
||
container: qmkfm/qmk_cli | ||
|
||
steps: | ||
- name: Disable safe.directory check | ||
run : git config --global --add safe.directory '*' | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Run qmk generators | ||
run: | | ||
util/regen.sh | ||
git diff | ||
- uses: rlespinasse/[email protected] | ||
|
||
- name: Become QMK Bot | ||
run: | | ||
git config user.name 'QMK Bot' | ||
git config user.email '[email protected]' | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v4 | ||
if: ${{ github.repository == 'qmk/qmk_firmware'}} | ||
with: | ||
token: ${{ secrets.QMK_BOT_TOKEN }} | ||
delete-branch: true | ||
branch: bugfix/regen_${{ env.GITHUB_REF_SLUG }} | ||
author: QMK Bot <[email protected]> | ||
committer: QMK Bot <[email protected]> | ||
commit-message: Regenerate Files | ||
title: '[CI] Regenerate 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
Oops, something went wrong.