-
Notifications
You must be signed in to change notification settings - Fork 10
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
101 changed files
with
2,099 additions
and
2,099 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Arduino | ||
|
||
on: | ||
push: | ||
branches: | ||
- "**" | ||
pull_request: | ||
types: [ready_for_review, synchronize, opened] # fix: synchronize triggers builds for PR merges with the base branch, currently causes duplicate builds as synchronize is treated the same as push for everything besides merges | ||
|
||
jobs: | ||
arduino: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install Dependencies | ||
run: | | ||
sudo apt-get install bzip2 | ||
yes | sudo apt install python-pip | ||
pip install pyserial | ||
pip install --upgrade pip | ||
wget -O arduino-cli-linux64.tar.bz2 https://github.com/arduino/arduino-cli/releases/download/0.3.3-alpha.preview/arduino-cli-0.3.3-alpha.preview-linux64.tar.bz2 | ||
bunzip2 arduino-cli-linux64.tar.bz2 | ||
tar xvf arduino-cli-linux64.tar | ||
sudo mv arduino-cli-0.3.3-alpha.preview-linux64 /usr/local/share/arduino-cli | ||
sudo ln -s /usr/local/share/arduino-cli /usr/local/bin/arduino-cli | ||
printf "board_manager: | ||
additional_urls: | ||
- https://dl.espressif.com/dl/package_esp32_index.json" >> .cli-config.yml | ||
sudo mv .cli-config.yml /usr/local/share/ | ||
arduino-cli core update-index | ||
arduino-cli core install esp32:esp32 | ||
- name: Build Arduino Sketch | ||
run: | | ||
mkdir -p ~/Arduino/libraries/cpp-crypto/ | ||
mv ${GITHUB_WORKSPACE}/* ~/Arduino/libraries/cpp-crypto/ | ||
arduino-cli lib install "[email protected]" | ||
arduino-cli lib install "[email protected]" | ||
arduino-cli lib install "[email protected]" | ||
arduino-cli compile --output temp.bin -b esp32:esp32:esp32 ~/Arduino/libraries/cpp-crypto/examples/ESP32/ESP32.ino --debug |
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 |
---|---|---|
@@ -1,4 +1,2 @@ | ||
|
||
/.circleci | ||
/.vscode | ||
.DS_Store |
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
Oops, something went wrong.