forked from qmk/qmk_userspace
-
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.
- Loading branch information
Showing
4 changed files
with
71 additions
and
22 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 |
---|---|---|
|
@@ -30,3 +30,6 @@ indent_style = tab | |
|
||
[*.sh] | ||
end_of_line = lf | ||
|
||
[*.yaml] | ||
indent_size = 2 |
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,64 @@ | ||
# Largely based on QMK's builtin workflow but tailored for my usage with Vial | ||
name: Build Vial firmware | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- keyboards/** | ||
- vial-qmk/** | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
name: Build Userspace Firmware | ||
runs-on: ubuntu-latest | ||
container: qmkfm/base_container | ||
steps: | ||
- name: Checkout Userspace | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ github.token }} | ||
submodules: recursive | ||
- name: Install QMK CLI | ||
run: | | ||
python3 -m pip install --upgrade qmk | ||
python3 -m pip install -r vial-qmk/requirements.txt | ||
- name: Configure QMK CLI | ||
run: | | ||
qmk config userspace_compile.parallel=$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null) | ||
qmk config user.qmk_home=$GITHUB_WORKSPACE/vial-qmk | ||
qmk config user.overlay_dir=$GITHUB_WORKSPACE | ||
- name: Validate userspace | ||
run: | | ||
qmk userspace-doctor | ||
- name: Build | ||
run: | | ||
qmk userspace-compile -e DUMP_CI_METADATA=yes || touch .failed | ||
# Generate the step summary markdown | ||
./qmk_firmware/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 binaries | ||
uses: actions/upload-artifact@v4 | ||
if: always() && !cancelled() | ||
continue-on-error: true | ||
with: | ||
name: Firmware | ||
path: | | ||
*.bin | ||
*.hex | ||
*.uf2 | ||
publish: | ||
name: 'QMK Userspace Publish' | ||
uses: qmk/.github/.github/workflows/qmk_userspace_publish.yml@main | ||
if: always() && !cancelled() | ||
needs: build |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"userspace_version": "1.0", | ||
"build_targets": [] | ||
} | ||
"build_targets": [ | ||
["aki27/cocot46plus", "vial"] | ||
] | ||
} |