Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds UF2 output support for release builds. #94

Merged
merged 26 commits into from
Dec 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
59b29d8
Adding artifact upload to ci builds.
jeff-winn Dec 11, 2021
4a2482b
Adding packaging section.
jeff-winn Dec 11, 2021
d551e02
Fixing bug with release pipeline.
jeff-winn Dec 11, 2021
119e807
Adding repository.
jeff-winn Dec 11, 2021
a1fbcb8
Fixing syntax.
jeff-winn Dec 11, 2021
0c644d6
Adding build dependency.
jeff-winn Dec 11, 2021
4e8144a
Fixing repository name.
jeff-winn Dec 11, 2021
a26dae3
Adding zip decompression for bluetooth output.
jeff-winn Dec 11, 2021
9e47f29
Adding board packaging.
jeff-winn Dec 11, 2021
420fd55
Adding python toolset.
jeff-winn Dec 11, 2021
72bc7dd
Adding environment variables for file locations.
jeff-winn Dec 11, 2021
581ad31
Updating pipeline.
jeff-winn Dec 11, 2021
abb3f88
Fixing name.
jeff-winn Dec 11, 2021
19ff294
Updating path to decompress.
jeff-winn Dec 12, 2021
8773baa
Fixing environment variables.
jeff-winn Dec 12, 2021
8e07eef
Adding additional comments.
jeff-winn Dec 12, 2021
39b8854
Disabling bluetooth sketch deployment.
jeff-winn Dec 12, 2021
4f90d4c
Updating location.
jeff-winn Dec 12, 2021
6902ecf
Updating output location to existing folder.
jeff-winn Dec 12, 2021
0209bff
Updating build results.
jeff-winn Dec 12, 2021
83c22a7
Updating extract location.
jeff-winn Dec 12, 2021
0e36b03
Updating output location.
jeff-winn Dec 12, 2021
aec6392
Updating extract location/
jeff-winn Dec 12, 2021
3d0dee2
Adding packaging for bluetooth.
jeff-winn Dec 12, 2021
fe99f41
Fixing whitespace.
jeff-winn Dec 12, 2021
a3376a0
Relocating build updates to release workflow.
jeff-winn Dec 12, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 49 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,57 @@ jobs:
- name: Upload mainboard
uses: actions/upload-artifact@v2
with:
name: mainboard
path: out/Mainboard/Mainboard.ino.*
name: sketches
path: out/Mainboard/Mainboard.ino.bin

- name: Extract files
run: 7z e ${env:GITHUB_WORKSPACE}/out/Bluetooth/Bluetooth.ino.zip -o"${env:GITHUB_WORKSPACE}/out/Bluetooth"

- name: Upload bluetooth
uses: actions/upload-artifact@v2
with:
name: sketches
path: out/Bluetooth/Bluetooth.ino.bin

package:
runs-on: windows-latest
timeout-minutes: 15
needs: build

steps:
- name: Checkout packager
uses: actions/checkout@v2
with:
repository: microsoft/uf2
path: uf2

- name: Setup Python
uses: actions/setup-python@v2

- name: Download sketches
uses: actions/download-artifact@v2
with:
name: sketches
path: bin

# The values passed into the script need to be retrieved from the following page:
# See: https://learn.adafruit.com/adafruit-feather-m4-express-atsamd51/uf2-bootloader-details
- name: Package mainboard
run: python uf2/utils/uf2conv.py -c -b 0x4000 -o ${env:GITHUB_WORKSPACE}/mainboard.uf2 ${env:GITHUB_WORKSPACE}/bin/Mainboard.ino.bin

# The values passed into the script need to be retrieved from the following page:
# See: https://github.com/adafruit/Adafruit_nRF52_Bootloader
- name: Package bluetooth
run: python uf2/utils/uf2conv.py -c -b 0x26000 -f 0xADA52840 -o ${env:GITHUB_WORKSPACE}/bluetooth.uf2 ${env:GITHUB_WORKSPACE}/bin/Bluetooth.ino.bin

- name: Upload mainboard
uses: actions/upload-artifact@v2
with:
name: mainboard
path: out/Bluetooth/Bluetooth.ino.*
path: mainboard.uf2

- name: Upload bluetooth
uses: actions/upload-artifact@v2
with:
name: bluetooth
path: bluetooth.uf2
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ else
endif

# Arduino CLI Board type
# NOTE: Any changes to the FQBNs here will also likely require updating the release workflow for packaging the UF2 files.
MAIN_BOARD_TYPE = adafruit:samd
MAIN_BOARD_VERSION = 1.7.5
MAIN_FQBN = $(MAIN_BOARD_TYPE):adafruit_feather_m4
Expand Down