Skip to content

Commit 6c0711e

Browse files
committed
workflows: automated builds and deployment
Signed-off-by: Randolph Sapp <[email protected]>
1 parent 88327c5 commit 6c0711e

File tree

2 files changed

+101
-0
lines changed

2 files changed

+101
-0
lines changed

.github/workflows/build.yml

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

.github/workflows/deploy.yml

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

0 commit comments

Comments
 (0)