-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (68 loc) · 2.34 KB
/
ptx-fpga.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
name: meta-ptx-fpga CI
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: meta-ptx-fpga Build
runs-on: ubuntu-20.04
timeout-minutes: 980
steps:
- name: Checkout Build Cache
uses: actions/cache@v2
with:
path: |
build/sstate-cache
key: ${{ runner.os }}-sstate-${{ hashFiles('**/build/sstate-cache') }}
restore-keys: |
${{ runner.os }}-sstate-
- name: Install required packages
run: |
sudo apt-get install diffstat
- name: Checkout
uses: actions/checkout@v2
with:
path: meta-ptx-fpga
- name: Clone Subprojects
run: |
git clone -b kirkstone git://git.yoctoproject.org/poky
git clone -b kirkstone https://github.com/openembedded/meta-openembedded.git
git clone -b master https://github.com/nathanrossi/meta-hdl.git
cd meta-hdl
git show
cd ..
- name: Initialize build directory
run: |
source poky/oe-init-build-env build
bitbake-layers add-layer ../meta-openembedded/meta-oe
bitbake-layers add-layer ../meta-openembedded/meta-python
bitbake-layers add-layer ../meta-hdl
bitbake-layers add-layer ../meta-ptx-fpga
echo 'INHERIT += "rm_work"' >> conf/local.conf
- name: Build VeXRiscv Bitstream
run: |
source poky/oe-init-build-env build
MACHINE=ecpix5-vexriscv bitbake ptxsoc-vexriscv
- name: Build VeXRiscv Image
run: |
source poky/oe-init-build-env build
MACHINE=ecpix5-vexriscv bitbake core-image-minimal
# Upload
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: ecpix5-vexriscv
path: |
build/tmp/deploy/images/ecpix5-vexriscv/*.bit
build/tmp/deploy/images/ecpix5-vexriscv/*.svf
build/tmp/deploy/images/ecpix5-vexriscv/*.wic
build/tmp/deploy/images/ecpix5-vexriscv/boot.json
build/tmp/deploy/images/ecpix5-vexriscv/Image*
build/tmp/deploy/images/ecpix5-vexriscv/*.dtb
build/tmp/deploy/images/ecpix5-vexriscv/fw_jump.bin