Skip to content

yocto: kirkstone: Add tip for creating own manifest file #681

yocto: kirkstone: Add tip for creating own manifest file

yocto: kirkstone: Add tip for creating own manifest file #681

Workflow file for this run

name: Build
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Clone repo with all tags (required for git describe)
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: |
sudo apt update
sudo apt install tox texlive-latex-extra texlive-xetex texlive-lang-chinese latexmk python3-pip -y
pip3 install -r requirements/setup.txt
- name: Render HTML Documentation
run: |
tox -e py3-intl
tox -e py3-html
- name: Build PDF Documentation
run: tox -e py3-pdf
- name: Deploy Preview
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/html
destination_dir: 'previews/${{ github.event.number }}'
- name: Create status check with preview link
run: |
PREVIEW_URL="https://phytec.github.io/doc-bsp-yocto/previews/${{ github.event.number }}"
PAYLOAD=$(echo '{}' | jq --arg name 'Click on details for a Doc Preview' --arg url "${PREVIEW_URL}" '{"name": $name, "head_sha": "${{ github.event.pull_request.head.sha }}", "details_url": $url, "status": "completed", "conclusion": "success", "output": {"title": $name, "summary": "Preview available at the link below. PRs that have been merged in the meantime trigger a deploy action that will delete existing previews. Re-run the build action if the link does not work.", "text": $url}}')
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Content-Type: application/json" \
-X POST -d "${PAYLOAD}" \
"https://api.github.com/repos/${{ github.repository }}/check-runs"