-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make changes to CI so Docker image is reused. (#110)
- Loading branch information
1 parent
3fc70ec
commit 55c21dd
Showing
9 changed files
with
174 additions
and
84 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
This file was deleted.
Oops, something went wrong.
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,17 @@ | ||
name: 'Load note-arduino CI Docker image' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Download image artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: note_arduino_ci_image | ||
path: /tmp | ||
|
||
- name: Load Docker image | ||
shell: bash | ||
run: | | ||
docker load --input /tmp/note_arduino_ci_image.tar |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
NOTE_ARDUINO_DIR="$SCRIPT_DIR/.." | ||
|
||
# If this is being run inside a Docker container (i.e. for GitHub actions CI), | ||
# copy the latest note-arduino code into the appropriate place so that it can | ||
# be consumed when building the example. | ||
if grep -sq 'docker\|lxc' /proc/1/cgroup; then | ||
cp -r $NOTE_ARDUINO_DIR $HOME/Arduino/libraries/Blues_Wireless_Notecard | ||
fi | ||
|
||
arduino-cli compile \ | ||
--build-property compiler.cpp.extra_flags='-Wno-unused-parameter -Werror' \ | ||
--fqbn $1 \ | ||
--log-level trace \ | ||
--verbose \ | ||
--warnings all \ | ||
$2 |
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