Skip to content

Instantly share code, notes, and snippets.

@j1n6
Created December 18, 2019 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j1n6/4e130c6a91e5d7d4891d78b1d989eb0f to your computer and use it in GitHub Desktop.
Save j1n6/4e130c6a91e5d7d4891d78b1d989eb0f to your computer and use it in GitHub Desktop.
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install gcc unzip wget zip gcc-avr binutils-avr avr-libc dfu-programmer dfu-util gcc-arm-none-eabi binutils-arm-none-eabi libnewlib-arm-none-eabi
- name: Update QMK Firmware
run: |
git submodule update --init
cd qmk_firmware && make git-submodule
- name: Link custom keymap definition
run: ln -s $(pwd)/crkbd-custom $(pwd)/qmk_firmware/keyboards/crkbd/keymaps/activars
- name: Build firmware hex distribution
run: cd qmk_firmware && make crkbd:activars
- name: Upload artifact
uses: actions/upload-artifact@master
with:
name: crkbd_rev1_activars.hex
path: qmk_firmware/crkbd_rev1_activars.hex
- name: Release
uses: docker://softprops/action-gh-release
if: startsWith(github.ref, 'refs/tags/')
with:
files: qmk_firmware/crkbd_rev1_activars.hex
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment