Skip to content

CI build for 2263/merge #5425

CI build for 2263/merge

CI build for 2263/merge #5425

Workflow file for this run

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
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download all firmware artifacts
uses: actions/download-artifact@v4
with:
pattern: "*"
path: generated/artifacts
merge-multiple: true
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "14.x"
- name: Install docs dependencies
run: npm install
- name: Build documentation with ci_site.sh
run: |
# Quick build check (dev mode) not used task-docs.yml because is not required the upload of artefacts
./scripts/ci.sh site --mode dev