Skip to content

Commit 78cc448

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

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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: Checkout infix repo
14+
uses: actions/checkout@v4
15+
with:
16+
repository: ${{ github.repository }}
17+
ref: ${{ github.ref }}
18+
fetch-depth: 0
19+
submodules: recursive
20+
21+
- name: Set Build Variables
22+
id: vars
23+
run: |
24+
echo "INFIX_BUILD_ID=${{ github.run_id }}" >> $GITHUB_OUTPUT
25+
echo "dir=Infix-x86_64" >> $GITHUB_OUTPUT
26+
echo "tgz=Infix-x86_64.tar.gz" >> $GITHUB_OUTPUT
27+
echo "flv=_minimal" >> $GITHUB_OUTPUT
28+
29+
- name: Configure x86_64_minimal
30+
run: |
31+
make x86_64_minimal_defconfig
32+
33+
- name: Build x86_64_minimal
34+
run: |
35+
make
36+
37+
- name: Unit Test x86_64
38+
run: |
39+
make test-unit
40+
41+
- name: Check SBOM
42+
run: |
43+
make legal-info
44+
45+
- name: Build test spec
46+
run: |
47+
make test-spec
48+
49+
- name: Report Build Size
50+
run: |
51+
du -sh .
52+
du -sh output
53+
du -sh dl || true
54+
ls -l output/images/
55+
56+
- name: Prepare Artifact
57+
run: |
58+
cd output/
59+
mv images Infix-x86_64
60+
ln -s Infix-x86_64 images
61+
tar cfz Infix-x86_64.tar.gz Infix-x86_64
62+
63+
- uses: actions/upload-artifact@v4
64+
with:
65+
path: output/Infix-x86_64.tar.gz
66+
name: artifact-x86_64
67+

0 commit comments

Comments
 (0)