Skip to content

Commit b0595c3

Browse files
committed
Allow skipping risc-v/openocd with testing
1 parent 00a5a4e commit b0595c3

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -230,30 +230,36 @@ jobs:
230230
if: ${{ runner.os == 'Windows' }} || ${{ runner.os == 'macOS' }}
231231
shell: bash # Windows only has unzip in bash shell
232232
run: |
233-
unzip openocd*.zip
234-
ls
235233
unzip pico-sdk-tools*.zip
236234
ls
237235
unzip picotool*.zip
238236
ls
239-
unzip riscv-toolchain*.zip
237+
unzip openocd*.zip || true
238+
ls
239+
unzip riscv-toolchain*.zip || true
240240
ls
241241
- name: Extract build (tar.gz)
242242
if: ${{ runner.os == 'Linux' }}
243243
run: |
244-
tar -xvf openocd*.tar.gz
245-
ls
246244
tar -xvf pico-sdk-tools*.tar.gz
247245
ls
248246
tar -xvf picotool*.tar.gz
249247
ls
250-
tar -xvf riscv-toolchain*.tar.gz
248+
tar -xvf openocd*.tar.gz || true
249+
ls
250+
tar -xvf riscv-toolchain*.tar.gz || true
251251
ls
252252
253-
- name: Test everything runs
253+
- name: Test default stuff runs
254254
run: |
255255
./picotool/picotool version
256256
./pioasm/pioasm --version
257+
- name: Test openocd runs
258+
if: ${{ env.SKIP_OPENOCD != 1 }}
259+
run: |
257260
./openocd --version
261+
- name: Test riscv-toolchain runs
262+
if: ${{ env.SKIP_RISCV != 1 }}
263+
run: |
258264
./bin/riscv32-unknown-elf-gcc --version
259265
./bin/riscv32-unknown-elf-gdb --version

0 commit comments

Comments
 (0)