Skip to content

Commit dcc1dc1

Browse files
committed
.github: add generic x86 build that runs on GH hardware
Signed-off-by: Richard Alpe <[email protected]>
1 parent 3d100fe commit dcc1dc1

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Generic X86 GitHub Build
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
name: Infix x86_64
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Install build dependencies
14+
run: |
15+
sudo apt-get update
16+
sudo apt-get install -y \
17+
bc binutils build-essential bzip2 cpio \
18+
diffutils file findutils git gzip \
19+
libncurses-dev libssl-dev perl patch \
20+
python3 rsync sed tar unzip wget \
21+
autopoint bison flex autoconf automake \
22+
mtools
23+
24+
- name: Checkout infix repo
25+
uses: actions/checkout@v4
26+
with:
27+
repository: ${{ github.repository }}
28+
ref: ${{ github.ref }}
29+
fetch-depth: 0
30+
submodules: recursive
31+
32+
- name: Set Build Variables
33+
id: vars
34+
run: |
35+
echo "INFIX_BUILD_ID=${{ github.run_id }}" >> $GITHUB_OUTPUT
36+
echo "dir=Infix-x86_64" >> $GITHUB_OUTPUT
37+
echo "tgz=Infix-x86_64.tar.gz" >> $GITHUB_OUTPUT
38+
echo "flv=_minimal" >> $GITHUB_OUTPUT
39+
40+
- name: Configure x86_64_minimal
41+
run: |
42+
make x86_64_minimal_defconfig
43+
44+
- name: Unit Test x86_64
45+
run: |
46+
make test-unit
47+
48+
- name: Build x86_64_minimal
49+
run: |
50+
make
51+
52+
- name: Check SBOM
53+
run: |
54+
make legal-info
55+
56+
- name: Build test spec
57+
run: |
58+
make test-spec
59+
60+
- name: Report Build Size
61+
run: |
62+
du -sh .
63+
du -sh output
64+
du -sh dl || true
65+
ls -l output/images/
66+
67+
- name: Prepare Artifact
68+
run: |
69+
cd output/
70+
mv images Infix-x86_64
71+
ln -s Infix-x86_64 images
72+
tar cfz Infix-x86_64.tar.gz Infix-x86_64
73+
74+
- uses: actions/upload-artifact@v4
75+
with:
76+
path: output/Infix-x86_64.tar.gz
77+
name: artifact-x86_64
78+

0 commit comments

Comments
 (0)