Skip to content

Document deprecation of OneShot keys (#1023) #93

Document deprecation of OneShot keys (#1023)

Document deprecation of OneShot keys (#1023) #93

Workflow file for this run

name: Build
on:
push:
branches: ['main', 'master']
paths:
- 'kmk/**'
env:
mpy-cross-path: "https://adafruit-circuit-python.s3.amazonaws.com/bin/mpy-cross/linux-amd64/mpy-cross-linux-amd64-"
jobs:
Compile:
strategy:
matrix:
mpy-cross-release: ["8.2.0", "9.0.4"]
runs-on: ubuntu-latest
steps:
- run: echo "A ${{ github.event_name }} event trigged build of branch ${{ github.ref }}, repository ${{ github.repository }}"
- name: Check out repository code
uses: actions/checkout@v4
- name: Cache mpy-cross
id: cache-mpy-cross
uses: actions/cache@v4
env:
cache-name: cache-mpy-cross-8
with:
path: ${{ github.workspace }}/mpy-cross
key: ${{ matrix.mpy-cross-release }}
- if: ${{ steps.cache-mpy-cross.outputs.cache-hit != 'true' }}
name: install mpy-cross
run: |
wget --no-verbose "${{ env.mpy-cross-path }}${{ matrix.mpy-cross-release }}.static" -O ${{ github.workspace }}/mpy-cross; \
chmod +x ${{ github.workspace }}/mpy-cross
- name: get short git sha
id: sha
run: echo "SHA=`git rev-parse --short HEAD`" >> $GITHUB_OUTPUT
- name: compile
run: PATH=.:$PATH make compile
- name: List build dir
run: |
ls -la .compiled/kmk/
- name: upload zip
uses: actions/upload-artifact@v4
with:
name: kmk-${{ steps.sha.outputs.SHA }}+mpy-cross-${{ matrix.mpy-cross-release }}
path: .compiled/kmk/