forked from TexasInstruments/processor-sdk-doc
-
Notifications
You must be signed in to change notification settings - Fork 0
98 lines (86 loc) · 1.97 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
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
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- name: Update github page deployment
uses: actions/deploy-pages@v4