uv-k5-firmware-chinese-lts/.github/workflows/docker-image.yml

48 lines
1.2 KiB
YAML
Raw Normal View History

2023-12-07 03:39:09 +00:00
on:
push:
jobs:
build:
runs-on: ubuntu-22.04
container:
image: archlinux:latest
steps:
2023-12-08 12:47:40 +00:00
- name: Install dependencies
run: |
pacman -Syyu --noconfirm \
base-devel \
arm-none-eabi-gcc \
arm-none-eabi-newlib \
git \
python-pip \
2023-12-08 12:51:01 +00:00
python-crcmod
2023-12-07 03:39:09 +00:00
- name: Checkout
uses: actions/checkout@v3
2023-12-08 12:51:01 +00:00
2023-12-07 03:39:09 +00:00
- name: safe.directory
2023-12-08 13:15:17 +00:00
run: git config --global --add safe.directory /__w/uv-k5-firmware-chinese/uv-k5-firmware-chinese
2023-12-08 12:51:01 +00:00
2023-12-07 03:39:09 +00:00
- name: Make
2023-12-08 12:51:01 +00:00
run: make
2023-12-07 03:39:09 +00:00
- name: size
2023-12-08 12:51:01 +00:00
run: arm-none-eabi-size firmware
2023-12-07 03:39:09 +00:00
2023-12-08 12:47:40 +00:00
- name: Upload Artifact
2023-12-07 03:39:09 +00:00
uses: actions/upload-artifact@v3
with:
name: firmware
path: firmware*.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: firmware.packed.bin
asset_name: egzumer_$tag.packed.bin
tag: ${{ github.ref }}
overwrite: true
2023-12-08 12:51:01 +00:00
release_name: release ${{ github.ref_name }}