Skip to content

Merge pull request #20 from prokrypt/prokrypt-patch-2 #66

Merge pull request #20 from prokrypt/prokrypt-patch-2

Merge pull request #20 from prokrypt/prokrypt-patch-2 #66

Workflow file for this run

on:
push:
paths:
- '**.c'
- '**.h'
- 'Makefile'
jobs:
build:
runs-on: ubuntu-22.04
container:
image: archlinux:latest
steps:
- name: Cache pacman
uses: actions/cache@v4
with:
path: /var/cache/pacman
key: pacman
- name: base-devel, arm-none-eabi-gcc arm-none-eabi-newlib git python-pip python-crcmod
run: pacman -Syyu base-devel arm-none-eabi-gcc arm-none-eabi-newlib git python-pip python-crcmod --noconfirm
- name: Checkout
uses: actions/checkout@v3
- name: safe.directory
run: git config --global --add safe.directory /__w/uv-k5-firmware-custom/uv-k5-firmware-custom
- name: Make
run: make
- name: size
run: arm-none-eabi-size voxless
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: voxless_test
path: voxless*.bin
# - name: Upload binaries to release
# if: ${{ startsWith(github.ref, 'refs/tags/v') }}
# uses: svenstaro/upload-release-action@v2
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: voxless.packed.bin
# asset_name: voxless_$tag.packed.bin
# tag: ${{ github.ref }}
# release_name: release ${{ github.ref_name }}
# overwrite: true
# cache-from: type=local,src=/var/cache/pacman