Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/cicd builds #41

Merged
merged 2 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
---
name: "build"

on:
push:
branches: [master]

concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true

defaults:
run:
shell: bash

jobs:
build:
name: Build Linux Documents
runs-on: ubuntu-latest
container:
image: ghcr.io/texasinstruments/processor-sdk-doc:latest
options: --entrypoint /bin/bash
strategy:
matrix:
os: [linux]
device:
- AM335X
- AM437X
- AM57X
- AM62AX
- AM62PX
- AM62X
- AM64X
- AM65X
- AM67
- AM68
- AM69
- CORESDK
- DRA821A
- GEN
- J7200
- J721E
- J721S2
- J722S
- J742S2
- J784S4
include:
- os: android
device: AM62PX
- os: android
device: AM62X
- os: android
device: GEN

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build ${{ matrix.device }}
run: |
make DEVFAMILY=${{ matrix.device }} OS=${{ matrix.os }} \
VERSION=${{ github.ref_name }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.device }}-${{ matrix.os }}
path: build/
retention-days: 1

agregate:
name: Agregate build artifacts
runs-on: ubuntu-latest
needs: build

steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path: build
merge-multiple: true

- name: Upload static files as single artifact
uses: actions/upload-pages-artifact@v3
with:
path: build
21 changes: 21 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: "deploy"

on:
workflow_run:
workflows:
- build
types:
- completed

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write

steps:
- name: Update github page deployment
uses: actions/deploy-pages@v4
3 changes: 3 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@
# If true, the index is split into individual pages for each letter.
#html_split_index = False

# If True, the reStructuredText sources are included in the HTML build as _sources/docname.
html_copy_source = False

# If true, links to the reST sources are added to the pages.
html_show_sourcelink = False

Expand Down
Loading