Skip to content

Commit a16294f

Browse files
committed
Add buildtools+setupenv+configure workflow
1 parent 2e1bb1d commit a16294f

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: buildtools build
2+
on:
3+
push:
4+
branches:
5+
- '**'
6+
7+
jobs:
8+
buildtools:
9+
name: Build buildtools + configure
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Install build dependencies
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y --no-install-recommends \
22+
bison build-essential cmake debootstrap debhelper \
23+
dh-dkms dkms elfutils flex git \
24+
grub-efi-amd64-bin grub-pc-bin \
25+
libdrm-dev libelf-dev libfl-dev libfreetype6-dev \
26+
libgif-dev libicns-dev libicu-dev libinput-dev \
27+
libjpeg-dev libncurses-dev libopenexr-dev libpng-dev \
28+
libtiff-dev libudev-dev libwebp-dev \
29+
linux-headers-$(uname -r) \
30+
mtools ninja-build squashfs-tools sudo xorriso zlib1g-dev \
31+
fakeroot devscripts lintian wget
32+
33+
- name: Configure git safe.directory
34+
run: git config --global --add safe.directory $GITHUB_WORKSPACE
35+
36+
- name: Init submodules
37+
run: git submodule update --init --recursive
38+
39+
- name: Create buildtools directory
40+
run: mkdir -p buildtools
41+
42+
- name: Build buildtools (cmake + ninja configure)
43+
run: |
44+
cd buildtools
45+
cmake -DBUILDTOOLS_MODE=1 .. -GNinja
46+
ninja -v -t clean || true
47+
# Do not run the actual ninja build; only configure step completed.
48+
49+
- name: Create build directory
50+
run: mkdir -p generated.x86
51+
52+
- name: Setup environment
53+
run: |
54+
cd generated.x86
55+
export TERM=xterm-256color
56+
../build/scripts/setupenv.sh
57+
58+
- name: Configure project
59+
run: |
60+
cd generated.x86
61+
BUILD_TYPE=Workflow ../configure
62+
63+
- name: Archive intermediate state
64+
uses: actions/upload-artifact@v4
65+
with:
66+
name: buildtools-stage
67+
path: |
68+
buildtools/**
69+
generated.x86/**

0 commit comments

Comments
 (0)