Skip to content

Commit 460dbf3

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

File tree

2 files changed

+103
-0
lines changed

2 files changed

+103
-0
lines changed

.github/workflows/build.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
---
2+
name: "build"
3+
4+
on:
5+
push:
6+
branches: [feature/cicd-builds]
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+
63+
- name: Upload artifact
64+
uses: actions/upload-artifact@v4
65+
with:
66+
name: ${{ matrix.device }}-${{ matrix.os }}
67+
path: build/
68+
retention-days: 1
69+
70+
agregate:
71+
name: Agregate build artifacts
72+
runs-on: ubuntu-latest
73+
needs: build
74+
75+
steps:
76+
- name: Download all artifacts
77+
uses: actions/download-artifact@v4
78+
with:
79+
github-token: ${{ secrets.GITHUB_TOKEN }}
80+
path: build
81+
82+
- name: Upload static files as single artifact
83+
uses: actions/upload-pages-artifact@v3
84+
with:
85+
path: build

.github/workflows/deploy.yml

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

0 commit comments

Comments
 (0)