File tree 1 file changed +52
-0
lines changed
1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Sync bins
2
+ on :
3
+ workflow_dispatch :
4
+ repository_dispatch :
5
+ push :
6
+ # on:
7
+ # push:
8
+ # branches:
9
+ # - main
10
+ # paths:
11
+ # - "binaries/**"
12
+
13
+ jobs :
14
+ sync-binaries :
15
+ runs-on : ubuntu-latest
16
+
17
+ steps :
18
+ - name : Checkout repository
19
+ uses : actions/checkout@v1
20
+
21
+ - name : Install Arduino CLI
22
+ uses : arduino/setup-arduino-cli@v1
23
+
24
+ - name : Install Arduino CLI cores and libs for provisioning
25
+ run : |
26
+ arduino-cli core update-index -v
27
+ arduino-cli version
28
+ arduino-cli core install arduino:samd
29
+ arduino-cli core install arduino:mbed_nano
30
+ arduino-cli core install arduino:mbed_portenta
31
+ arduino-cli lib install ArduinoIotCloud
32
+ arduino-cli lib install ArduinoECCX08
33
+ arduino-cli lib install ArduinoSTL
34
+ arduino-cli lib install uCRC16Lib
35
+ arduino-cli lib install Arduino_Portenta_OTA
36
+ arduino-cli lib install MKRWAN
37
+
38
+ - name : Install Python
39
+ uses : actions/setup-python@v2
40
+ with :
41
+ python-version : " 3.9"
42
+
43
+ - name : Generate binaries and index
44
+ run : python ./firmware/generator.py -a $(which arduino-cli)
45
+
46
+ - name : s3 sync
47
+ run : |
48
+ aws s3 sync ./firmware/binaries s3://cloud-downloads.oniudra.cc/binaries
49
+ env :
50
+ AWS_REGION : " us-east-1" # or https://github.com/aws/aws-cli/issues/5623
51
+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
52
+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
You can’t perform that action at this time.
0 commit comments