-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ci-runner.sh
executable file
·48 lines (39 loc) · 1.1 KB
/
ci-runner.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#! /bin/sh -e
P=/tmp/iesp.ci
rm -rf $P
git clone . $P
cat > $P/microcontrollers/data/cfg-iESP.json <<EOF
{
"wifi" : [
{ "ssid": "www.vanheusden.com", "psk": "Ditiseentest31415926" },
{ "ssid": "NurdSpace", "psk": "harkharkhark" }
],
"syslog-host" : "10.208.3.58",
"log-level": "debug",
"trim-level": 2,
"eth-wait-time": 1,
"update-df-interval": 5,
"led-green": 17,
"led-yellow": 21,
"led-red": 22,
"SD_MISO": 19,
"SD_MOSI": 23,
"SD_SCLK": 18,
"SD_CS": 5
}
EOF
# C++
(cd $P ; (mkdir build ; cd build ; cmake .. ; make -j6) )
# windows
(cd $P ; (mkdir buildMingw64 ; cd buildMingw64 ; cmake -DCMAKE_TOOLCHAIN_FILE=../mingw64.cmake .. ; make -j6) )
# Arduino prepare
mkdir -p $P/microcontrollers/.pio
cp -a microcontrollers/.pio/libdeps $P/microcontrollers/.pio
cp -a microcontrollers/RP2040W/.pio/libdeps $P/microcontrollers/RP2040W/.pio
# Arduino: Wemos32
(cd $P/microcontrollers/ ; pio run -e ESP32-wemos)
# Arduino: Teensy4.1
(cd $P/microcontrollers/ ; pio run -e Teensy4_1)
# Arduino: RP2040W (Raspberry Pi Pico)
mkdir -p $P/microcontrollers/RP2040W/.pio
(cd $P/microcontrollers/RP2040W ; pio run)