fix precompilation deployment to use correct library.properties

This commit is contained in:
Noah Laptop 2020-04-10 12:13:37 -07:00
parent 4301fe6fdd
commit 73afe1e371

View file

@ -48,11 +48,12 @@ jobs:
github_token: $GITHUB_TOKEN github_token: $GITHUB_TOKEN
- stage: "Deploy" - stage: "Deploy"
# if: tag is present if: tag is present
env: CORE="arduino:samd esp32:esp32 STM32:stm32" env: CORE="arduino:samd esp32:esp32 STM32:stm32"
script: skip script: skip
before_deploy: before_deploy:
- mkdir tmp-bin - mkdir tmp-bin
- cp library.properties library.properties.old
- echo "dot_a_linkage=true" >> library.properties - echo "dot_a_linkage=true" >> library.properties
- rm -rf /tmp/arduino-sketch* - rm -rf /tmp/arduino-sketch*
# cortex-m0plus # cortex-m0plus
@ -70,6 +71,7 @@ jobs:
- mkdir tmp-bin/esp32 - mkdir tmp-bin/esp32
- cp "$(find /tmp/ -maxdepth 1 -type d -name "arduino-sketch*" -print | head -n 1)/libraries/SSLClient/SSLClient.a" tmp-bin/esp32/SSLClient.a - cp "$(find /tmp/ -maxdepth 1 -type d -name "arduino-sketch*" -print | head -n 1)/libraries/SSLClient/SSLClient.a" tmp-bin/esp32/SSLClient.a
# bundle it up! # bundle it up!
- mv library.properties.old library.properties
- echo "precompiled=true" >> library.properties - echo "precompiled=true" >> library.properties
- mv tmp-bin/* src/ - mv tmp-bin/* src/
- rm -rf tmp-bin - rm -rf tmp-bin
@ -83,8 +85,8 @@ jobs:
skip_cleanup: true skip_cleanup: true
file: "SSLClient-precompiled.zip" file: "SSLClient-precompiled.zip"
draft: true draft: true
#on: on:
# tags: true tags: true
install: install:
- curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/bin sudo sh - curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/bin sudo sh