File tree Expand file tree Collapse file tree 1 file changed +82
-0
lines changed Expand file tree Collapse file tree 1 file changed +82
-0
lines changed Original file line number Diff line number Diff line change 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 --update-cache
29+ apk add \
30+ build-base \
31+ cmake \
32+ ninja \
33+ ccache \
34+ gdb \
35+ lldb \
36+ pkgconf \
37+ python3 \
38+ py3-pip \
39+ py3-pexpect \
40+ coreutils \
41+ procps \
42+ man-pages \
43+ git \
44+ capnproto \
45+ capnproto-dev \
46+ zlib-dev \
47+ zstd-dev \
48+ elfutils-dev \
49+ eudev-dev \
50+ libseccomp-dev
51+
52+ - name : Checkout rr
53+ uses : actions/checkout@v4
54+
55+ - name : Mark repo as safe
56+ run : git config --global --add safe.directory /__w/rr/rr
57+
58+ - name : Cache build artifacts
59+ uses : actions/cache@v3
60+ with :
61+ path : build
62+ key : ${{ runner.os }}-rr-build-${{ hashFiles('**/CMakeLists.txt') }}
63+ restore-keys : |
64+ ${{ runner.os }}-rr-build-
65+
66+ - name : Build rr
67+ run : |
68+ mkdir -p build && cd build
69+ cmake -G Ninja -Ddisable32bit=ON ..
70+ ninja -k 0 2>&1 | tee build.log
71+
72+ - name : Upload build log
73+ if : always()
74+ uses : actions/upload-artifact@v4
75+ with :
76+ name : rr-build-log
77+ path : build/build.log
78+
79+ - name : Run basic tests
80+ run : |
81+ cd build
82+ ctest --o
You can’t perform that action at this time.
0 commit comments