-
Notifications
You must be signed in to change notification settings - Fork 8
104 lines (84 loc) · 3.31 KB
/
main.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
100
101
102
103
104
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
version:
description: 'Provide release tag, eg. 0.5.4'
type: string
required: true
permissions:
contents: write
env:
VERSION: ${{ inputs.version }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run-name: Build tezuka_fw run for tag - Tezuka_${{ inputs.version }}
jobs:
build-x86_64:
# runs-on: self-hosted
runs-on: ubuntu-latest
# environment: plutosdr-fw-ci
permissions: write-all
steps:
- uses: actions/checkout@v4.1.1
with:
clean: false
submodules: recursive
- name: Install dependencies
shell: bash
run: |
sudo apt-get update -q -y
sudo apt-get install -y make gcc g++ python3 python3-dev python3-pip \
python3-pytest python3-numpy python3-scipy iverilog wget curl \
default-jre libxrender-dev libxtst-dev libtinfo5 \
libgtk2.0-0 git \
zip unzip dfu-util fakeroot u-boot-tools device-tree-compiler mtools \
bison flex libncurses5-dev libssl-dev bc cpio rsync cmake \
libgtk-3-0 xz-utils libgmp-dev libmpc-dev bootgen-xlnx
- name: Build Tezuka
run: |
source sourceme.first
mkdir ${{runner.workspace}}/build && cd ${{runner.workspace}}/build
wget https://buildroot.org/downloads/buildroot-2024.08.tar.gz && tar -xvf buildroot-2024.08.tar.gz
cd ${{runner.workspace}}/build/buildroot-2024.08
make pluto_original_defconfig && make && mv ${{runner.workspace}}/build/buildroot-2024.08/output/images/tezuka.zip ${{runner.workspace}}/build/pluto_original.zip
make linux-dirclean
make plutoplus_original_defconfig && make && mv ${{runner.workspace}}/build/buildroot-2024.08/output/images/tezuka.zip ${{runner.workspace}}/build/plutoplus_original.zip
make linux-dirclean
make pluto_maiasdr_defconfig && make && mv ${{runner.workspace}}/build/buildroot-2024.08/output/images/tezuka.zip ${{runner.workspace}}/build/pluto_maiasdr.zip
make linux-dirclean
make plutoplus_maiasdr_defconfig && make && mv ${{runner.workspace}}/build/buildroot-2024.08/output/images/tezuka.zip ${{runner.workspace}}/build/plutoplus_maiasdr.zip
- name: Save zip Archive
uses: actions/upload-artifact@v4
with:
name: tezuka_fw
path: ${{runner.workspace}}/build/*.zip
create_full_archive:
needs: ['build-x86_64']
runs-on: ubuntu-latest
steps:
- name: Download All Builds
uses: actions/download-artifact@v4
- name: Create Archive
run: >
mkdir tezuka_all &&
mv tezuka_fw/*.zip tezuka_all/
- uses: actions/upload-artifact@v4
with:
name: tezuka_all
path: tezuka_all/
update_nightly_release:
needs: [create_full_archive]
runs-on: ubuntu-latest
steps:
- name: Download All Builds
uses: actions/download-artifact@v4
- name: Update Nightly
run: gh release create ${{ inputs.version }} tezuka_all/* -R ${{github.repository}} --generate-notes