File tree Expand file tree Collapse file tree 1 file changed +81
-0
lines changed Expand file tree Collapse file tree 1 file changed +81
-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 --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
You can’t perform that action at this time.
0 commit comments