yoink. https://github.com/armel/uv-k5-firmware-custom/commit/5cf119c8… #81
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
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@v4 | |
- 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@v4 | |
with: | |
name: voxless_test | |
path: voxless*.bin | |
# - name: Upload binaries to release | |
# if: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
# uses: svenstaro/upload-release-action@v3 | |
# 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 |