Development Build #1392
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: Development Build | |
on: | |
schedule: | |
- cron: '0 10 * * *' | |
workflow_dispatch: | |
jobs: | |
build: | |
name: QMK Userspace build | |
runs-on: ubuntu-latest | |
container: qmkfm/base_container | |
permissions: | |
contents: write | |
strategy: | |
fail-fast: false | |
matrix: | |
keyboard: [corne, cradio, sweep, ika] | |
split: [left, right, ''] | |
steps: | |
- name: Checkout QMK | |
uses: actions/checkout@main | |
with: | |
path: qmk_firmware | |
repository: qmk/qmk_firmware | |
ref: develop | |
submodules: true | |
- name: Checkout userspace | |
uses: actions/checkout@main | |
with: | |
path: users/${{ github.actor }} | |
persist-credentials: false | |
- name: Install QMK CLI | |
run: | | |
python3 -m pip install --upgrade qmk | |
python3 -m pip install -r qmk_firmware/requirements.txt | |
- name: Configure QMK CLI | |
run: | | |
qmk config userspace_compile.parallel=$(nproc) | |
qmk config user.qmk_home=$GITHUB_WORKSPACE/qmk_firmware | |
qmk config user.overlay_dir=$GITHUB_WORKSPACE | |
- name: Setup build target | |
run: | | |
wget https://github.com/qmk/qmk_userspace/raw/main/qmk.json | |
qmk userspace-add $GITHUB_WORKSPACE/users/${{ github.actor }}/keymaps/${{ matrix.keyboard }}.json | |
- name: Compile | |
run: qmk userspace-compile -e SPLIT=${{ matrix.split }} | |
- name: Archive firmware | |
if: github.event_name == 'workflow_dispatch' | |
uses: actions/upload-artifact@main | |
with: | |
retention-days: 3 | |
name: ${{ matrix.keyboard }}_${{ matrix.split }} | |
path: | | |
*.hex | |
*.bin | |
*.uf2 | |
purge: | |
uses: filterpaper/scripts/.github/workflows/purge-workflow.yml@main | |
with: | |
purge-age: 5 | |
delete-all-completed: false | |
delete-all-incomplete: false |