Skip to content

Commit 1bd59c1

Browse files
authored
Merge pull request #176 from adafruit/add-use-staging-pr
Make pull requests also build staging artifacts
2 parents a0076cc + 55d6d89 commit 1bd59c1

15 files changed

+118
-31
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,17 @@ jobs:
6161
run: |
6262
mv examples/*/build/*/Wippersnapper_demo.ino.uf2 wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.uf2
6363
mv examples/*/build/*/Wippersnapper_demo.ino.bin wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.bin
64+
mv examples/*/build/*/Wippersnapper_demo_staging.ino.uf2 staging.wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.uf2
65+
mv examples/*/build/*/Wippersnapper_demo_staging.ino.bin staging.wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.bin
6466
- name: upload build artifacts
6567
uses: actions/upload-artifact@v2
6668
with:
6769
name: build-files
6870
path: |
6971
wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.uf2
7072
wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.bin
73+
staging.wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.uf2
74+
staging.wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.bin
7175
7276
7377
build-esp32:
@@ -101,12 +105,14 @@ jobs:
101105
- name: Rename build artifacts to reflect the platform name
102106
run: |
103107
mv examples/Wippersnapper_demo/build/esp32.esp32.*/Wippersnapper_demo.ino.bin wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.bin
108+
mv examples/Wippersnapper_demo_staging/build/esp32.esp32.*/Wippersnapper_demo_staging.ino.bin staging.wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.bin
104109
- name: upload build artifacts
105110
uses: actions/upload-artifact@v2
106111
with:
107112
name: build-files
108113
path: |
109114
wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.bin
115+
staging.wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.bin
110116
111117
build-samd:
112118
name: Build WipperSnapper SAMD
@@ -142,13 +148,18 @@ jobs:
142148
run: |
143149
mv examples/*/build/*/Wippersnapper_demo.ino.uf2 wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.uf2
144150
mv examples/*/build/*/Wippersnapper_demo.ino.hex wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.hex
151+
mv examples/*/build/*/Wippersnapper_demo_staging.ino.uf2 staging.wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.uf2
152+
mv examples/*/build/*/Wippersnapper_demo_staging.ino.hex staging.wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.hex
145153
- name: upload build artifacts
146154
uses: actions/upload-artifact@v2
147155
with:
148156
name: build-files
149157
path: |
150158
wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.uf2
151159
wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.hex
160+
staging.wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.uf2
161+
staging.wippersnapper.${{ matrix.arduino-platform }}.${{ env.WS_VERSION }}.hex
162+
152163
153164
clang_and_doxy:
154165
runs-on: ubuntu-latest
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
3+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// Adafruit IO WipperSnapper Beta
2+
//
3+
//
4+
// NOTE: This software is a BETA release and in active development.
5+
// Please report bugs or errors to https://github.com/adafruit/Adafruit_Wippersnapper_Arduino/issues
6+
//
7+
//
8+
// Adafruit invests time and resources providing this open source code.
9+
// Please support Adafruit and open source hardware by purchasing
10+
// products from Adafruit!
11+
//
12+
// Brent Rubell for Adafruit Industries, 2021
13+
//
14+
// All text above must be included in any redistribution.
15+
16+
#include "Wippersnapper_Networking.h"
17+
Wippersnapper_WiFi wipper;
18+
19+
// Enable debug output for beta builds
20+
#define WS_DEBUG
21+
// Enable staging server
22+
bool useStaging = true;
23+
24+
void setup() {
25+
// Provisioning must occur prior to serial init.
26+
wipper.provision();
27+
28+
Serial.begin(115200);
29+
//while (!Serial) delay(10);
30+
31+
wipper.connect(useStaging);
32+
33+
}
34+
35+
void loop() {
36+
wipper.run();
37+
}

0 commit comments

Comments
 (0)