2023-12-08 14:39:56 +00:00
|
|
|
|
2023-12-08 14:38:24 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
container:
|
|
|
|
image: archlinux:latest
|
|
|
|
steps:
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
pacman -Syyu --noconfirm \
|
|
|
|
base-devel \
|
|
|
|
arm-none-eabi-gcc \
|
|
|
|
arm-none-eabi-newlib \
|
|
|
|
git \
|
|
|
|
python-pip \
|
|
|
|
python-crcmod
|
|
|
|
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: safe.directory
|
2023-12-08 13:29:01 +00:00
|
|
|
run: git config --global --add safe.directory /__w/uv-k5-firmware-custom/uv-k5-firmware-custom
|
|
|
|
|
2023-12-08 14:38:24 +00:00
|
|
|
- name: Make
|
|
|
|
run: make
|
2023-12-08 13:29:01 +00:00
|
|
|
|
2023-12-08 14:38:24 +00:00
|
|
|
- name: size
|
|
|
|
run: arm-none-eabi-size firmware
|
2023-12-08 13:29:01 +00:00
|
|
|
|
2023-12-08 14:38:24 +00:00
|
|
|
- name: Upload Artifact
|
|
|
|
uses: actions/upload-artifact@v3
|
2023-12-07 03:39:09 +00:00
|
|
|
with:
|
2023-12-08 14:38:24 +00:00
|
|
|
name: firmware
|
|
|
|
path: firmware*.bin
|
2023-12-07 03:39:09 +00:00
|
|
|
|
2023-12-08 14:38:24 +00:00
|
|
|
- name: Upload binaries to release
|
|
|
|
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
|
|
|
uses: svenstaro/upload-release-action@v2
|
2023-12-07 03:39:09 +00:00
|
|
|
with:
|
2023-12-08 14:38:24 +00:00
|
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
file: firmware.packed.bin
|
|
|
|
asset_name: egzumer_$tag.packed.bin
|
|
|
|
tag: ${{ github.ref }}
|
|
|
|
overwrite: true
|
|
|
|
release_name: release ${{ github.ref_name }}
|