-
Notifications
You must be signed in to change notification settings - Fork 11
99 lines (86 loc) · 2.86 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
99
# This is a basic workflow to help you get started with Actions
name: Build
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the dev_nuclei branch
on:
push:
branches: [ dev* ]
paths-ignore:
- README.md
- LICENSE
- .gitlab-ci.yml
- .gitignore
pull_request:
branches: [ dev_nuclei ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
name: build for ${{ matrix.core }}
runs-on: ubuntu-18.04
strategy:
matrix:
core: [ux600, ux600fd]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout Linux SDK Code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Tarball source
run: |
base=$(basename $PWD)
cd ..
tar czvf source.tar.gz --exclude-vcs -C $base .
mv source.tar.gz $base/
- name: Upload source
if: matrix.core == 'ux600'
uses: actions/[email protected]
with:
name: nuclei_linux_sdk_source
path: source.tar.gz
# continue build on error
continue-on-error: true
- name: Caching packages
uses: actions/cache@v2
with:
path: buildroot/dl
key: build
# Install dependendenc
- name: Install dependencies
run: |
sudo apt-get install build-essential git autotools-dev cmake texinfo bison minicom flex liblz4-tool \
libgmp-dev libmpfr-dev libmpc-dev gawk libz-dev libssl-dev device-tree-compiler libncursesw5-dev libncursesw5
# Build 4M Freeloader
- name: Build freeloader4m for ${{ matrix.core }}
run: |
make CORE=${{ matrix.core }} freeloader4m
cp freeloader/freeloader.elf work/freeloader4m.elf
# Build Freeloader
- name: Build freeloader for ${{ matrix.core }}
run: |
make cleanbuildroot
make cleansysroot
make cleanfreeloader
make cleanboot
make CORE=${{ matrix.core }} freeloader
# Build bootimages
- name: Build bootimages for ${{ matrix.core }}
run: |
make CORE=${{ matrix.core }} bootimages
- name: Upload bootimages
uses: actions/[email protected]
with:
name: bootimages_${{ matrix.core }}
path: |
work/boot.zip
freeloader/freeloader.elf
work/freeloader4m.elf
- name: Upload cached packages
if: matrix.core == 'ux600'
uses: actions/[email protected]
with:
name: build_caching
path: |
buildroot/dl