-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
111 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Build | ||
on: [push, pull_request] | ||
jobs: | ||
bootloader-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- run: sudo apt-get install -y make podman | ||
- name: Setup the builder image | ||
run: | | ||
cd firmware/bootloader | ||
make .build-container | ||
- name: Build the firmware | ||
run: | | ||
cd firmware/bootloader | ||
make in-container | ||
- name: Archive resulting bootloader | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: jumpstarter-bootloader-dfu.bin | ||
path: firmware/bootloader/dfu-bootloader.bin | ||
|
||
application-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- run: sudo apt-get install -y make podman | ||
- name: Setup the builder image | ||
run: | | ||
cd firmware/application | ||
make .build-container | ||
- name: Build the firmware | ||
run: | | ||
cd firmware/application | ||
make in-container | ||
- name: Archive resulting application | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: jumpstarter-main.cab | ||
path: firmware/application/jumpstarter* | ||
|
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Publish | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
jobs: | ||
firmware-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- run: sudo apt-get install -y make podman | ||
- name: Setup the builder image | ||
run: | | ||
cd firmware/bootloader | ||
make .build-container | ||
- name: Build the bootloader firmware | ||
run: | | ||
cd firmware/bootloader | ||
make in-container | ||
- name: Build the application firmware | ||
run: | | ||
cd firmware/application | ||
make in-container | ||
- name: Prepare all binaries in one directory | ||
run: | | ||
mkdir release | ||
cp firmware/bootloader/*.bin release | ||
cp firmware/application/*.bin release | ||
cp firmware/application/*.cab release | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: release/* | ||
asset_name: firmware | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
body: "Automated release based on tag creation" |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM registry.fedoraproject.org/fedora:38 | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh | ||
RUN sh rustup.sh -y | ||
RUN whoami | ||
ENV PATH=/root/.cargo/bin:$PATH | ||
RUN rustup target add thumbv7em-none-eabihf | ||
RUN dnf install -y stlink openocd arm-none-eabi-binutils-cs \ | ||
gcab libappstream-glib rpm-build copr-cli dfu-util \ | ||
make git gcc |
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