Skip to content

Commit 0d46d80

Browse files
authored
Alpine CI
first test
1 parent c9349cc commit 0d46d80

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

.github/workflows/alpine-build.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: CI - Build rr
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
container:
15+
image: alpine:latest
16+
17+
steps:
18+
- name: Install prerequisites
19+
run: apk add --no-cache bash git curl tar xz
20+
21+
- name: Cache apk packages
22+
uses: actions/cache@v3
23+
with:
24+
path: /var/cache/apk
25+
key: ${{ runner.os }}-apk-${{ hashFiles('.github/workflows/ci.yml') }}
26+
restore-keys: |
27+
${{ runner.os }}-apk-
28+
29+
- name: Install build dependencies
30+
run: |
31+
apk update
32+
apk add --no-cache \
33+
build-base \
34+
cmake \
35+
ninja \
36+
python3 \
37+
linux-headers \
38+
linux-tools \
39+
binutils-dev \
40+
zlib-dev \
41+
capnproto \
42+
capnproto-dev \
43+
eudev-dev \
44+
procps \
45+
elfutils-dev \
46+
coreutils \
47+
diffutils
48+
49+
- name: Checkout rr
50+
uses: actions/checkout@v4
51+
with:
52+
submodules: recursive
53+
54+
- name: Cache build artifacts
55+
uses: actions/cache@v3
56+
with:
57+
path: build
58+
key: ${{ runner.os }}-rr-build-${{ hashFiles('**/CMakeLists.txt') }}
59+
restore-keys: |
60+
${{ runner.os }}-rr-build-
61+
62+
- name: Build rr
63+
run: |
64+
mkdir -p build && cd build
65+
cmake -G Ninja ..
66+
ninja
67+
68+
- name: Run basic tests
69+
run: |
70+
cd build
71+
ctest --o

0 commit comments

Comments
 (0)