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

Fix CI #140

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 10 additions & 2 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,16 @@ jobs:
enable-deltas-report: 'true'
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}

# Generate unique artifact name without colon
- name: Generate artifact name
env:
FQBN: ${{ matrix.board.fqbn }}
id: artifact-namer
run: |
ARTIFACT_NAME="${{ env.SKETCHES_REPORTS_PATH }}-${FQBN//:/_}"
echo "name=$ARTIFACT_NAME" >> "$GITHUB_OUTPUT"
- name: Save memory usage change report as artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
path: ${{ env.SKETCHES_REPORTS_PATH }}
name: ${{ env.SKETCHES_REPORTS_PATH }}
name: ${{ steps.artifact-namer.outputs.name }}
22 changes: 12 additions & 10 deletions .github/workflows/compile-muxto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,19 @@ jobs:
board:
- fqbn: arduino:samd:muxto:float=default,config=enabled,clock=internal_usb,timer=timer_732Hz,bootloader=4kb,serial=two_uart,usb=cdc
platforms: |
# Install MattairTech_Arduino:samd via Boards Manager for the toolchain
- name: MattairTech_Arduino:samd
source-url: https://www.mattairtech.com/software/arduino/package_MattairTech_index.json
# This needs to match with the version of MattairTech_Arduino:samd the Arduino fork is based on in order to get the right tool versions
version: 1.6.17
# Install Fab_SAM_Arduino:samd via Boards Manager for the toolchain
- name: Fab_SAM_Arduino:samd
source-url: https://raw.githubusercontent.com/qbolsee/ArduinoCore-fab-sam/master/json/package_Fab_SAM_index.json
# Originally, we installed MattairTech_Arduino:[email protected] to get the right tool versions because the Arduino fork is based on it.
# However, MattairTech_Arduino:samd is no longer available.
# So we use its successor, Fab_SAM_Arduino:samd, and modify the Arduino fork to work with 1.12.0
version: 1.12.0
# Install officila samd version for compiler support
- name: arduino:samd
# Install the platform with MuxTO support
- name: arduino:samd
source-url: https://github.com/arduino/ArduinoCore-samd.git
version: muxto
source-url: https://github.com/pazeshun/ArduinoCore-samd.git
version: muxto-fab-sam

steps:
- name: Set environment variables
Expand Down Expand Up @@ -70,14 +72,14 @@ jobs:
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}

- name: Save firmware binary as workflow artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
path: ${{ env.BINARY_OUTPUT_PATH }}/${{ env.BINARY_FILENAME }}
name: ${{ env.BINARY_ARTIFACT_NAME }}

- name: Save sketches report as workflow artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
path: ${{ env.SKETCHES_REPORTS_PATH }}
Expand All @@ -89,7 +91,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download binary artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: ${{ env.BINARY_ARTIFACT_NAME }}

Expand Down
Loading