Skip to content

Commit 308a4a4

Browse files
committed
Alpine CI
for now: only to be run manually [skip ci]
1 parent c9349cc commit 308a4a4

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

.github/workflows/alpine-build.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: Alpine build
2+
3+
#on: [push, pull_request]
4+
on: workflow_dispatch
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
container:
11+
image: alpine:latest
12+
13+
steps:
14+
- name: Install prerequisites
15+
run: apk add --no-cache bash git curl tar xz
16+
17+
- name: Cache apk packages
18+
uses: actions/cache@v3
19+
with:
20+
path: /var/cache/apk
21+
key: ${{ runner.os }}-apk-${{ hashFiles('.github/workflows/ci.yml') }}
22+
restore-keys: |
23+
${{ runner.os }}-apk-
24+
25+
- name: Install build dependencies
26+
run: |
27+
apk update
28+
apk add --no-cache \
29+
build-base \
30+
cmake \
31+
ninja \
32+
ccache \
33+
gdb \
34+
lldb \
35+
pkgconf \
36+
python3 \
37+
py3-pip \
38+
py3-pexpect \
39+
coreutils \
40+
procps \
41+
man-pages \
42+
git \
43+
capnproto \
44+
capnproto-dev \
45+
zlib-dev \
46+
zstd-dev \
47+
elfutils-dev \
48+
eudev-dev \
49+
libseccomp-dev
50+
51+
- name: Checkout rr
52+
uses: actions/checkout@v4
53+
54+
- name: Mark repo as safe
55+
run: git config --global --add safe.directory /__w/rr/rr
56+
57+
- name: Cache build artifacts
58+
uses: actions/cache@v3
59+
with:
60+
path: build
61+
key: ${{ runner.os }}-rr-build-${{ hashFiles('**/CMakeLists.txt') }}
62+
restore-keys: |
63+
${{ runner.os }}-rr-build-
64+
65+
- name: Build rr
66+
run: |
67+
mkdir -p build && cd build
68+
cmake -G Ninja -Ddisable32bit=ON ..
69+
ninja -k 0 |& tee build.log
70+
71+
- name: Upload build log
72+
if: always()
73+
uses: actions/upload-artifact@v4
74+
with:
75+
name: rr-build-log
76+
path: build/build.log
77+
78+
- name: Run basic tests
79+
run: |
80+
cd build
81+
ctest --o

0 commit comments

Comments
 (0)