forked from armel/uv-k5-firmware-custom
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (43 loc) · 1.38 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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