Skip to content

Commit dba89c5

Browse files
committed
Always run workflow
1 parent 4160d98 commit dba89c5

File tree

1 file changed

+125
-124
lines changed

1 file changed

+125
-124
lines changed

.github/workflows/push.yml

Lines changed: 125 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -1,137 +1,138 @@
11
name: HyperSerialPico CI Build
22

33
on:
4-
workflow_dispatch: # Only runs when manually triggered
4+
push:
5+
branches:
6+
- "**" # Runs on push to any branch
57

68
jobs:
7-
8-
###########################
9-
#### HyperSerialPico ######
10-
###########################
9+
###########################
10+
#### HyperSerialPico ######
11+
###########################
1112

1213
HyperSerialPico:
1314
runs-on: ubuntu-22.04
1415

1516
steps:
16-
- uses: actions/checkout@v4.2.2
17-
with:
18-
submodules: recursive
19-
20-
- name: Install GNU Arm Embedded Toolchain
21-
uses: carlosperate/arm-none-eabi-gcc-action@v1
22-
with:
23-
release: '12.2.Rel1'
24-
25-
- name: Build packages
26-
shell: bash
27-
run: |
28-
mkdir build
29-
cd build
30-
cmake ..
31-
cmake --build . --config Release
32-
33-
- uses: actions/upload-artifact@v4.6.0
34-
name: Upload artifacts (commit)
35-
if: (startsWith(github.event.ref, 'refs/tags') != true)
36-
with:
37-
path: |
38-
firmware/*.uf2
39-
40-
- uses: actions/upload-artifact@v4.6.0
41-
name: Upload artifacts (release)
42-
if: startsWith(github.ref, 'refs/tags/')
43-
with:
44-
name: firmware-release-generic
45-
path: |
46-
firmware/*.uf2
47-
48-
- name: Build packages for Adafruit Feather RP2040 Scorpio (release-only)
49-
if: startsWith(github.ref, 'refs/tags/')
50-
shell: bash
51-
run: |
52-
cd build
53-
rm *.*
54-
rm ../firmware/*
55-
echo "Neopixel is using GPIO16(OUTPUT_DATA_PIN) on output 0." > ../firmware/Firmwares_for_Adafruit_Feather_RP2040_Scorpio.txt
56-
echo "SPI is using spi0 interface pins: GPIO19(OUTPUT_SPI_DATA_PIN) and GPIO18(OUTPUT_SPI_CLOCK_PIN) on output 3 and 2 respectively." >> ../firmware/Firmwares_for_Adafruit_Feather_RP2040_Scorpio.txt
57-
cmake -DOVERRIDE_BOOT_WORKAROUND=ON -DOVERRIDE_DATA_PIN=16 -DOVERRIDE_SPI_DATA_PIN=19 -DOVERRIDE_SPI_CLOCK_PIN=18 -DCMAKE_BUILD_TYPE=Release ..
58-
cmake --build .
59-
zip -j ../firmware/Adafruit_Feather_RP2040_Scorpio.zip ../firmware/*
60-
61-
- uses: actions/upload-artifact@v4.6.0
62-
name: Upload artifacts (release Adafruit_Feather)
63-
if: startsWith(github.ref, 'refs/tags/')
64-
with:
65-
name: firmware-release-adafruit-scorpio
66-
path: |
67-
firmware/*.zip
68-
69-
- name: Build packages for Adafruit ItsyBitsy RP2040 (release-only)
70-
if: startsWith(github.ref, 'refs/tags/')
71-
shell: bash
72-
run: |
73-
cd build
74-
rm *.*
75-
rm ../firmware/*
76-
echo "Neopixel is using GPIO14(OUTPUT_DATA_PIN) on output 5." > ../firmware/Firmwares_for_Adafruit_ItsyBitsy_2040.txt
77-
cmake -DOVERRIDE_BOOT_WORKAROUND=ON -DOVERRIDE_DATA_PIN=14 -DCMAKE_BUILD_TYPE=Release ..
78-
cmake --build .
79-
rm ../firmware/*_Spi.uf2
80-
zip -j ../firmware/Adafruit_ItsyBitsy_2040.zip ../firmware/*
81-
82-
- uses: actions/upload-artifact@v4.6.0
83-
name: Upload artifacts (release Adafruit_ItsyBitsy)
84-
if: startsWith(github.ref, 'refs/tags/')
85-
with:
86-
name: firmware-release-adafruit-itsybitsy
87-
path: |
88-
firmware/*.zip
89-
90-
- name: Build packages for Pimoroni Plasma Stick 2040 W (release-only)
91-
if: startsWith(github.ref, 'refs/tags/')
92-
shell: bash
93-
run: |
94-
cd build
95-
rm *.*
96-
rm ../firmware/*
97-
echo "Neopixel is using GPIO15(OUTPUT_DATA_PIN) on output PIXELS." > ../firmware/Firmwares_for_Pimoroni_Plasma_Stick_2040_W.txt
98-
cmake -DOVERRIDE_DATA_PIN=15 -DCMAKE_BUILD_TYPE=Release ..
99-
cmake --build .
100-
rm ../firmware/*_Spi.uf2
101-
zip -j ../firmware/Pimoroni_Plasma_Stick_2040_W.zip ../firmware/*
102-
103-
- uses: actions/upload-artifact@v4.6.0
104-
name: Upload artifacts (release Pimoroni_Plasma_Stick_W)
105-
if: startsWith(github.ref, 'refs/tags/')
106-
with:
107-
name: firmware-release-pimoroni-plasma-stick
108-
path: |
109-
firmware/*.zip
110-
111-
- name: Build packages for Pimoroni Plasma 2040 (release-only)
112-
if: startsWith(github.ref, 'refs/tags/')
113-
shell: bash
114-
run: |
115-
cd build
116-
rm *.*
117-
rm ../firmware/*
118-
echo "Neopixel is using GPIO15(OUTPUT_DATA_PIN) on output DA." > ../firmware/Firmwares_for_Pimoroni_Plasma_2040.txt
119-
echo "SPI is using spi1 interface pins: GPIO15(OUTPUT_SPI_DATA_PIN) and GPIO14(OUTPUT_SPI_CLOCK_PIN) on output DA and CL respectively." >> ../firmware/Firmwares_for_Pimoroni_Plasma_2040.txt
120-
cmake -DOVERRIDE_DATA_PIN=15 -DOVERRIDE_SPI_INTERFACE=spi1 -DOVERRIDE_SPI_DATA_PIN=15 -DOVERRIDE_SPI_CLOCK_PIN=14 -DCMAKE_BUILD_TYPE=Release ..
121-
cmake --build .
122-
zip -j ../firmware/Pimoroni_Plasma_2040.zip ../firmware/*
123-
124-
- uses: actions/upload-artifact@v4.6.0
125-
name: Upload artifacts (release Pimoroni_Plasma)
126-
if: startsWith(github.ref, 'refs/tags/')
127-
with:
128-
name: firmware-release-pimoroni-plasma
129-
path: |
130-
firmware/*.zip
131-
132-
################################
133-
###### Publish Releases ########
134-
################################
17+
- uses: actions/checkout@v4.2.2
18+
with:
19+
submodules: recursive
20+
21+
- name: Install GNU Arm Embedded Toolchain
22+
uses: carlosperate/arm-none-eabi-gcc-action@v1
23+
with:
24+
release: "12.2.Rel1"
25+
26+
- name: Build packages
27+
shell: bash
28+
run: |
29+
mkdir build
30+
cd build
31+
cmake ..
32+
cmake --build . --config Release
33+
34+
- uses: actions/upload-artifact@v4.6.0
35+
name: Upload artifacts (commit)
36+
if: (startsWith(github.event.ref, 'refs/tags') != true)
37+
with:
38+
path: |
39+
firmware/*.uf2
40+
41+
- uses: actions/upload-artifact@v4.6.0
42+
name: Upload artifacts (release)
43+
if: startsWith(github.ref, 'refs/tags/')
44+
with:
45+
name: firmware-release-generic
46+
path: |
47+
firmware/*.uf2
48+
49+
- name: Build packages for Adafruit Feather RP2040 Scorpio (release-only)
50+
if: startsWith(github.ref, 'refs/tags/')
51+
shell: bash
52+
run: |
53+
cd build
54+
rm *.*
55+
rm ../firmware/*
56+
echo "Neopixel is using GPIO16(OUTPUT_DATA_PIN) on output 0." > ../firmware/Firmwares_for_Adafruit_Feather_RP2040_Scorpio.txt
57+
echo "SPI is using spi0 interface pins: GPIO19(OUTPUT_SPI_DATA_PIN) and GPIO18(OUTPUT_SPI_CLOCK_PIN) on output 3 and 2 respectively." >> ../firmware/Firmwares_for_Adafruit_Feather_RP2040_Scorpio.txt
58+
cmake -DOVERRIDE_BOOT_WORKAROUND=ON -DOVERRIDE_DATA_PIN=16 -DOVERRIDE_SPI_DATA_PIN=19 -DOVERRIDE_SPI_CLOCK_PIN=18 -DCMAKE_BUILD_TYPE=Release ..
59+
cmake --build .
60+
zip -j ../firmware/Adafruit_Feather_RP2040_Scorpio.zip ../firmware/*
61+
62+
- uses: actions/upload-artifact@v4.6.0
63+
name: Upload artifacts (release Adafruit_Feather)
64+
if: startsWith(github.ref, 'refs/tags/')
65+
with:
66+
name: firmware-release-adafruit-scorpio
67+
path: |
68+
firmware/*.zip
69+
70+
- name: Build packages for Adafruit ItsyBitsy RP2040 (release-only)
71+
if: startsWith(github.ref, 'refs/tags/')
72+
shell: bash
73+
run: |
74+
cd build
75+
rm *.*
76+
rm ../firmware/*
77+
echo "Neopixel is using GPIO14(OUTPUT_DATA_PIN) on output 5." > ../firmware/Firmwares_for_Adafruit_ItsyBitsy_2040.txt
78+
cmake -DOVERRIDE_BOOT_WORKAROUND=ON -DOVERRIDE_DATA_PIN=14 -DCMAKE_BUILD_TYPE=Release ..
79+
cmake --build .
80+
rm ../firmware/*_Spi.uf2
81+
zip -j ../firmware/Adafruit_ItsyBitsy_2040.zip ../firmware/*
82+
83+
- uses: actions/upload-artifact@v4.6.0
84+
name: Upload artifacts (release Adafruit_ItsyBitsy)
85+
if: startsWith(github.ref, 'refs/tags/')
86+
with:
87+
name: firmware-release-adafruit-itsybitsy
88+
path: |
89+
firmware/*.zip
90+
91+
- name: Build packages for Pimoroni Plasma Stick 2040 W (release-only)
92+
if: startsWith(github.ref, 'refs/tags/')
93+
shell: bash
94+
run: |
95+
cd build
96+
rm *.*
97+
rm ../firmware/*
98+
echo "Neopixel is using GPIO15(OUTPUT_DATA_PIN) on output PIXELS." > ../firmware/Firmwares_for_Pimoroni_Plasma_Stick_2040_W.txt
99+
cmake -DOVERRIDE_DATA_PIN=15 -DCMAKE_BUILD_TYPE=Release ..
100+
cmake --build .
101+
rm ../firmware/*_Spi.uf2
102+
zip -j ../firmware/Pimoroni_Plasma_Stick_2040_W.zip ../firmware/*
103+
104+
- uses: actions/upload-artifact@v4.6.0
105+
name: Upload artifacts (release Pimoroni_Plasma_Stick_W)
106+
if: startsWith(github.ref, 'refs/tags/')
107+
with:
108+
name: firmware-release-pimoroni-plasma-stick
109+
path: |
110+
firmware/*.zip
111+
112+
- name: Build packages for Pimoroni Plasma 2040 (release-only)
113+
if: startsWith(github.ref, 'refs/tags/')
114+
shell: bash
115+
run: |
116+
cd build
117+
rm *.*
118+
rm ../firmware/*
119+
echo "Neopixel is using GPIO15(OUTPUT_DATA_PIN) on output DA." > ../firmware/Firmwares_for_Pimoroni_Plasma_2040.txt
120+
echo "SPI is using spi1 interface pins: GPIO15(OUTPUT_SPI_DATA_PIN) and GPIO14(OUTPUT_SPI_CLOCK_PIN) on output DA and CL respectively." >> ../firmware/Firmwares_for_Pimoroni_Plasma_2040.txt
121+
cmake -DOVERRIDE_DATA_PIN=15 -DOVERRIDE_SPI_INTERFACE=spi1 -DOVERRIDE_SPI_DATA_PIN=15 -DOVERRIDE_SPI_CLOCK_PIN=14 -DCMAKE_BUILD_TYPE=Release ..
122+
cmake --build .
123+
zip -j ../firmware/Pimoroni_Plasma_2040.zip ../firmware/*
124+
125+
- uses: actions/upload-artifact@v4.6.0
126+
name: Upload artifacts (release Pimoroni_Plasma)
127+
if: startsWith(github.ref, 'refs/tags/')
128+
with:
129+
name: firmware-release-pimoroni-plasma
130+
path: |
131+
firmware/*.zip
132+
133+
################################
134+
###### Publish Releases ########
135+
################################
135136

136137
publish:
137138
name: Publish Releases

0 commit comments

Comments
 (0)