Merge pull request #361 from Louis454545/Louis454545-patch-1

Make the github worflow work again
This commit is contained in:
Armel FAUVEAU
2025-02-05 22:16:32 +01:00
committed by GitHub

View File

@@ -1,49 +1,24 @@
name: Build Firmware
on: on:
push: push:
branches: [ main ]
jobs: jobs:
build: build:
runs-on: ubuntu-22.04 runs-on: ubuntu-latest
container:
image: archlinux:latest
steps: steps:
- name: base-devel - name: Checkout code
run: pacman -Syyu base-devel --noconfirm uses: actions/checkout@v3
- name: arm-none-eabi-gcc
run: pacman -Syyu arm-none-eabi-gcc --noconfirm
- name: arm-none-eabi-newlib
run: pacman -Syyu arm-none-eabi-newlib --noconfirm
- name: git
run: pacman -Syyu git --noconfirm
- name: python-pip
run: pacman -Syyu python-pip --noconfirm
- name: python-crcmod
run: pacman -Syyu python-crcmod --noconfirm
- name: Checkout - name: Compile firmware
uses: actions/checkout@v3 run: |
chmod +x compile-with-docker.sh
- name: safe.directory ./compile-with-docker.sh
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 firmware
- name: 'Upload Artifact' - name: Upload firmware artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: firmware name: firmware-artifact
path: firmware*.bin path: compiled-firmware/f4hwn.packed.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
release_name: release ${{ github.ref_name }}