forked from egzumer/uv-k5-firmware-custom
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #367 from armel/feature_update_v4
Feature update v4
- Loading branch information
Showing
47 changed files
with
894 additions
and
239 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,24 @@ | ||
name: Build Firmware | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
container: | ||
image: archlinux:latest | ||
steps: | ||
- name: base-devel | ||
run: pacman -Syyu base-devel --noconfirm | ||
- 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 | ||
runs-on: ubuntu-latest | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- 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 firmware | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: 'Upload Artifact' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: firmware | ||
path: firmware*.bin | ||
- name: Compile firmware | ||
run: | | ||
chmod +x compile-with-docker.sh | ||
./compile-with-docker.sh | ||
- 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 }} | ||
|
||
- name: Upload firmware artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: firmware-artifact | ||
path: compiled-firmware/f4hwn.packed.bin |
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
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
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
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
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
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
Oops, something went wrong.