Skip to content

Commit c2eab8f

Browse files
committed
Update compile.yml
1 parent 44a3ba4 commit c2eab8f

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/compile.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,31 @@
11
name: Compile Examples
2-
on: [push]
2+
3+
on:
4+
push:
5+
36
jobs:
47
build:
58
runs-on: ubuntu-latest
69

710
strategy:
11+
fail-fast: true # Stop immediately if a failure occurs in any matrix job
812
matrix:
913
include:
1014
- board:
1115
fqbn: Inkplate_Motion:stm32:Inkplate6Motion
1216
additional-sketch-paths: |
1317
- examples
18+
1419
steps:
20+
# Ensure that Bash is used for compatibility with the prebuild script
1521
- name: Ensure Bash Shell
1622
run: sudo ln -sf /bin/bash /bin/sh
23+
24+
# Checkout the repository
1725
- name: Checkout
1826
uses: actions/checkout@v3
27+
28+
# Compile all examples
1929
- name: Compile examples
2030
uses: arduino/compile-sketches@v1
2131
with:
@@ -29,5 +39,8 @@ jobs:
2939
- source-path: ./
3040
sketch-paths: |
3141
${{ matrix.additional-sketch-paths }}
32-
cli-compile-flags: |
33-
- --warnings="default"
42+
43+
# Stop workflow if a compilation error occurs
44+
- name: Check for Compilation Errors
45+
if: failure() # This will trigger if the compile-sketches action fails
46+
run: exit 1

0 commit comments

Comments
 (0)