forked from fhessel/esp32_https_server
-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (52 loc) · 1.59 KB
/
build-examples-pr.yml
File metadata and controls
54 lines (52 loc) · 1.59 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
name: Build Examples
on:
pull_request:
types: [labeled]
jobs:
build-examples:
strategy:
matrix:
example:
- Async-Server
- Authentication
- HTML-Forms
- HTTPS-and-HTTP
- Middleware
- Parameters
- Parameter-Validation
- Put-Post-Echo
- REST-API
- Self-Signed-Certificate
- Static-Page
- Websocket-Chat
board:
- wrover
- wroom
runs-on: ubuntu-latest
if: "contains( github.event.pull_request.labels.*.name, 'CI: Build Examples' )"
steps:
- name: Checkout codebase
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
- name: Set up Python
uses: actions/setup-python@3105fb18c05ddd93efea5f9e0bef7a03a6e9e7df
with:
python-version: '3.8'
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install platformio
- name: Build example
run: ./extras/ci/scripts/build-example.sh ${{ matrix.board }} ${{ matrix.example }}
remove-label:
runs-on: ubuntu-latest
if: "contains( github.event.pull_request.labels.*.name, 'CI: Build Examples' )"
steps:
- name: Remove Label from PR
uses: octokit/request-action@91508edec0a9561c2fefb9282491ced243bed312
with:
route: DELETE /repos/:repository/issues/:issue_number/labels/:name
repository: ${{ github.repository }}
issue_number: ${{ github.event.number }}
name: "CI%3A Build Examples"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}