-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add initial CI build * Archive the uf2 * Add build badge in README * Declare python version and cache pip packages * Upgrade checkout action to remove deprecation notice and rename artifact
- Loading branch information
1 parent
3e00168
commit 4fcea2d
Showing
2 changed files
with
56 additions
and
0 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,54 @@ | ||
name: build | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- devel | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.9' | ||
cache: 'pip' | ||
- name: Install Arduino CLI | ||
uses: arduino/setup-arduino-cli@v2 | ||
with: | ||
version: "1.0.1" | ||
- name: Install Arduino CLI CMake Wrapper | ||
run: pip install arduino-cli-cmake-wrapper | ||
shell: bash | ||
- name: Configure Arduino CLI and Install RP2040 Core | ||
run: | | ||
arduino-cli config init | ||
arduino-cli config add board_manager.additional_urls https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json | ||
arduino-cli core install rp2040:rp2040 | ||
shell: bash | ||
- name: Install Arduino Libraries | ||
run: | | ||
arduino-cli lib install \ | ||
RadioHead \ | ||
Time | ||
shell: bash | ||
- name: Install F' Requirements | ||
run: pip install -r fprime/requirements.txt | ||
shell: bash | ||
- name: Build binary | ||
run: | | ||
fprime-util generate rpipico | ||
fprime-util build rpipico | ||
shell: bash | ||
- name: Archive binary | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: BroncoDeployment.uf2 | ||
path: build-artifacts/rpipico/BroncoDeployment/bin/BroncoDeployment.uf2 |
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