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 remote-tracking branch 'upstream/master'
* upstream/master: (163 commits) Run CI builds for each push, limit queued workflow depth to 1. (qmk#20362) Add numpad 0-9 to second layer, update keycodes for QMK 0.17.5, fix layout (qmk#20375) Add autocomplete to generate-compilation-database (qmk#20387) [Keyboard] Add audio support to Adafruit MacroPad RP2040 (qmk#20353) Convertors documentation: Removed duplicate table entry (qmk#20360) Avoid generating empty ENCODER_RESOLUTION (qmk#20179) Fixup CI build variables. (qmk#20357) Add Discord webhook at end of each CI run. (qmk#20355) Move a_dux to data-driven (qmk#20043) [Keyboard] Add Keychron Q11 (qmk#20125) Bump peter-evans/create-pull-request from 4 to 5 (qmk#20346) Add peterfalken userspace & keymaps (qmk#19897) Add Iron160 I160-S and I160-H PCBs support (qmk#20077) [Keyboard] Add lxxt (qmk#19935) Add Junco Keyboard (qmk#19516) [Keyboard] Add Budgy and Crowboard Keyboards (qmk#19141) Resolve keyboard names for `qmk mass-compile`. (qmk#20335) Add debounce time description (qmk#20333) Manibus keyboard, update pinout (qmk#20309) Use table for debounce algorithm description (qmk#20322) ...
- Loading branch information
Showing
1,001 changed files
with
56,060 additions
and
6,772 deletions.
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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: CI Builds | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
push: | ||
branches: [master, develop] | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
type: choice | ||
description: 'Branch to build' | ||
options: [master, develop] | ||
|
||
concurrency: ci_build-${{ github.event.inputs.branch || github.ref_name }} | ||
|
||
jobs: | ||
ci_builds: | ||
if: github.repository == 'qmk/qmk_firmware' | ||
name: "CI Build" | ||
runs-on: self-hosted | ||
timeout-minutes: 1380 | ||
|
||
strategy: | ||
fail-fast: false | ||
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 | ||
ref: ${{ github.event.inputs.branch || github.ref }} | ||
|
||
- name: Install dependencies | ||
run: pip3 install -r requirements.txt | ||
|
||
- name: Run `qmk mass-compile` (keymap ${{ matrix.keymap }}) | ||
run: | | ||
export NCPUS=$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null) | ||
qmk mass-compile -t -j $NCPUS -km ${{ matrix.keymap }} -e DUMP_CI_METADATA=yes || touch .failed | ||
# Generate the step summary markdown | ||
./util/ci/generate_failure_markdown.sh > $GITHUB_STEP_SUMMARY || true | ||
# Truncate to a maximum of 1MB to deal with GitHub workflow limit | ||
truncate --size='<960K' $GITHUB_STEP_SUMMARY || true | ||
# Exit with failure if the compilation stage failed | ||
[ ! -f .failed ] || exit 1 | ||
- name: 'Upload artifacts' | ||
uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: artifacts-${{ github.event.inputs.branch || github.ref_name }}-${{ matrix.keymap }} | ||
if-no-files-found: ignore | ||
path: | | ||
*.bin | ||
*.hex | ||
*.uf2 | ||
.build/failed.* | ||
- name: 'CI Discord Notification' | ||
if: always() | ||
working-directory: util/ci/ | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.CI_DISCORD_WEBHOOK }} | ||
run: | | ||
python3 -m pip install -r requirements.txt | ||
python3 ./discord-results.py --branch ${{ github.event.inputs.branch || github.ref_name }} --keymap ${{ matrix.keymap }} --url ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} |
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
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
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.