Skip to content

Commit 2d64c49

Browse files
StaticRocketcshilwant
authored andcommitted
feat(cicd): automated builds and deployment to pages
Use a matrix to parallelize building the docs for listed DEVFAMILY and OS combinations. Aggregate the results to build an expected pages artifact. Deploy the monolithic artifact to GitHub pages. If any platform fails for any reason, the arguments and logs for that build will be logged under a separate section of this workflow, and the results should not be deployed. Signed-off-by: Randolph Sapp <[email protected]>
1 parent 50c27d1 commit 2d64c49

File tree

2 files changed

+108
-0
lines changed

2 files changed

+108
-0
lines changed

.github/workflows/build.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
---
2+
name: "build"
3+
4+
on:
5+
push:
6+
branches: [master]
7+
8+
concurrency:
9+
group: ${{ github.ref_name }}
10+
cancel-in-progress: true
11+
12+
defaults:
13+
run:
14+
shell: bash
15+
16+
jobs:
17+
build:
18+
name: Build Linux Documents
19+
runs-on: ubuntu-latest
20+
container:
21+
image: ghcr.io/texasinstruments/processor-sdk-doc:latest
22+
options: --entrypoint /bin/bash
23+
strategy:
24+
matrix:
25+
os: [linux]
26+
device:
27+
- AM335X
28+
- AM437X
29+
- AM57X
30+
- AM62AX
31+
- AM62PX
32+
- AM62X
33+
- AM64X
34+
- AM65X
35+
- AM67
36+
- AM68
37+
- AM69
38+
- CORESDK
39+
- DRA821A
40+
- GEN
41+
- J7200
42+
- J721E
43+
- J721S2
44+
- J722S
45+
- J742S2
46+
- J784S4
47+
include:
48+
- os: android
49+
device: AM62PX
50+
- os: android
51+
device: AM62X
52+
- os: android
53+
device: GEN
54+
55+
steps:
56+
- name: Checkout
57+
uses: actions/checkout@v4
58+
59+
- name: Build ${{ matrix.device }}
60+
run: |
61+
make DEVFAMILY=${{ matrix.device }} OS=${{ matrix.os }} \
62+
VERSION=${{ github.ref_name }}
63+
64+
- name: Upload artifact
65+
uses: actions/upload-artifact@v4
66+
with:
67+
name: ${{ matrix.device }}-${{ matrix.os }}
68+
path: build/
69+
retention-days: 1
70+
71+
agregate:
72+
name: Agregate build artifacts
73+
runs-on: ubuntu-latest
74+
needs: build
75+
76+
steps:
77+
- name: Download all artifacts
78+
uses: actions/download-artifact@v4
79+
with:
80+
github-token: ${{ secrets.GITHUB_TOKEN }}
81+
path: build
82+
merge-multiple: true
83+
84+
- name: Upload static files as single artifact
85+
uses: actions/upload-pages-artifact@v3
86+
with:
87+
path: build

.github/workflows/deploy.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: "deploy"
3+
4+
on:
5+
workflow_run:
6+
workflows:
7+
- build
8+
types:
9+
- completed
10+
11+
jobs:
12+
deploy:
13+
name: Deploy
14+
runs-on: ubuntu-latest
15+
permissions:
16+
pages: write
17+
id-token: write
18+
19+
steps:
20+
- name: Update github page deployment
21+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)