-
Notifications
You must be signed in to change notification settings - Fork 899
47 lines (41 loc) · 1.5 KB
/
Copy pathbuild.yml
File metadata and controls
47 lines (41 loc) · 1.5 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
name: Build
# See details in .github/workflows/README.md (workflow docs)
run-name: "CI build for ${{ github.ref_name }}"
on: [push, pull_request]
jobs:
determine-build-scope:
runs-on: ubuntu-latest
outputs:
environment-set: ${{ steps.decide.outputs.environment-set }}
steps:
- name: Decide environment set
id: decide
run: |
# Full build for: development, master, edge, stable, release/*, hotfix/*, and all PRs
if [[ "${{ github.event_name }}" == "pull_request" ]] || \
[[ "${{ github.ref }}" == "refs/heads/development" ]] || \
[[ "${{ github.ref }}" == "refs/heads/master" ]] || \
[[ "${{ github.ref }}" == "refs/heads/edge" ]] || \
[[ "${{ github.ref }}" == "refs/heads/stable" ]] || \
[[ "${{ github.ref }}" == refs/heads/release/* ]] || \
[[ "${{ github.ref }}" == refs/heads/hotfix/* ]]; then
echo "environment-set=all" >> $GITHUB_OUTPUT
else
echo "environment-set=ci" >> $GITHUB_OUTPUT
fi
build:
needs: determine-build-scope
name: Build firmware
uses: ./.github/workflows/task-build.yml
with:
enable-dev-ota: true
artifact-retention-days: 7
environment-set: ${{ needs.determine-build-scope.outputs.environment-set }}
documentation:
needs: build
name: Build documentation
uses: ./.github/workflows/task-docs.yml
with:
mode: "dev"
run-pagespeed: false
just-check: true