Skip to content

Nightly firmware build #924

Nightly firmware build

Nightly firmware build #924

Workflow file for this run

name: "Nightly firmware build"
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '11 6 * * *'
workflow_dispatch:
inputs:
releaseBody:
description: 'Additional release text'
default: ""
jobs:
nightly_build:
runs-on: ubuntu-latest
name: Build firmware
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Build in docker container
id: docker_build
uses: ./.github/actions/
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: precompiled-firmware-files
path: |
qmk_firmware/nullbitsco_*.hex
qmk_firmware/nullbitsco_*.uf2
- name: Get current date
id: date
run: echo "date=$(date +'%m/%d/%Y')" >> $GITHUB_OUTPUT
- name: Generate release text
id: release_text
run: >
echo "release_text=$(echo 'Nightly build outputs for nullbits keyboards.
These files are always the most up-to-date but may contain unfixed bugs or other unreported issues!
**It is highly recommended that you flash one of the [official releases](https://github.com/nullbitsco/firmware/releases/tag/latest) instead.**
<br><br>${{ steps.docker_build.outputs.commits }}')" >> $GITHUB_OUTPUT
- name: Create release (AVR)
uses: ncipollo/release-action@v1
with:
artifacts: "qmk_firmware/nullbitsco_*.hex"
allowUpdates: true
artifactErrorsFailBuild: true
body: ${{ steps.release_text.outputs.release_text }}
tag: "nightly-avr"
name: "Nightly AVR Build ${{ steps.date.outputs.date }}"
token: ${{ secrets.GITHUB_TOKEN }}
removeArtifacts: true
- name: Create release (RP2040)
uses: ncipollo/release-action@v1
with:
artifacts: "qmk_firmware/nullbitsco_*.uf2"
allowUpdates: true
artifactErrorsFailBuild: true
body: ${{ steps.release_text.outputs.release_text }}
tag: "nightly-rp2040"
name: "Nightly RP2040 Build ${{ steps.date.outputs.date }}"
token: ${{ secrets.GITHUB_TOKEN }}
removeArtifacts: true