-
Notifications
You must be signed in to change notification settings - Fork 173
64 lines (58 loc) · 1.75 KB
/
Copy pathbuild_platformIO.yml
File metadata and controls
64 lines (58 loc) · 1.75 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: PlatformIO
on:
pull_request:
branches: [master, v1.x]
paths:
- ".github/workflows/build_platformIO.yml"
- "library.json"
- "examples/**"
- "!examples/*.zip"
push:
branches: [master, v1.x]
paths:
- ".github/workflows/build_platformIO.yml"
- "library.json"
- "examples/**"
- "!examples/*.zip"
tags: ["*"]
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
jobs:
validate_lib_json:
name: validate library.json
uses: nRF24/.github/.github/workflows/validate_platformio.yaml@main
secrets: inherit
build:
needs: [validate_lib_json]
uses: nRF24/.github/.github/workflows/build_platformio.yaml@main
with:
example-path: ${{ matrix.example }}
board-id: ${{ matrix.board }}
strategy:
fail-fast: false
matrix:
example:
- "examples/helloworld_rx/helloworld_rx.ino"
- "examples/helloworld_rx_advanced/helloworld_rx_advanced.ino"
- "examples/helloworld_tx/helloworld_tx.ino"
- "examples/helloworld_tx_advanced/helloworld_tx_advanced.ino"
- "examples/Network_Priority_RX/Network_Priority_RX.ino"
- "examples/Network_Priority_TX/Network_Priority_TX.ino"
board:
- "teensy31"
- "teensy35"
- "teensy36"
- "teensy40"
- "teensy41"
- "teensylc"
deploy:
name: deploy release asset
if: startsWith(github.ref, 'refs/tags/')
needs: [validate_lib_json, build]
permissions:
# needed for uploading release assets
contents: write
uses: nRF24/.github/.github/workflows/deploy_platformio_artifact.yaml@main
secrets: inherit