-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (71 loc) · 2.62 KB
/
Copy pathseastar.yaml
File metadata and controls
76 lines (71 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Build with the latest Seastar
on:
schedule:
# 5AM everyday
- cron: '0 5 * * *'
workflow_dispatch:
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
BUILD_DIR: build
jobs:
build-with-the-latest-seastar:
runs-on: depot-ubuntu-24.04-8
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
CCACHE_MAXSIZE: 2G
CCACHE_BASEDIR: ${{ github.workspace }}
CCACHE_NOHASHDIR: true
strategy:
matrix:
build_type:
- Debug
- RelWithDebInfo
- Dev
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: DeterminateSystems/nix-installer-action@ef8a148080ab6020fd15196c2084a2eea5ff2d25 # v22
- name: Replace inherited Seastar submodule
run: |
rm -rf seastar
- uses: actions/checkout@v4
with:
repository: scylladb/seastar
submodules: true
path: seastar
- name: Restore ccache
uses: actions/cache@v4
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-${{ runner.os }}-latest-seastar-${{ matrix.build_type }}-${{ hashFiles('flake.nix', 'flake.lock', 'configure.py', 'CMakeLists.txt', 'cmake/**', '.gitmodules') }}-${{ github.run_id }}
restore-keys: |
ccache-${{ runner.os }}-latest-seastar-${{ matrix.build_type }}-${{ hashFiles('flake.nix', 'flake.lock', 'configure.py', 'CMakeLists.txt', 'cmake/**', '.gitmodules') }}-
ccache-${{ runner.os }}-latest-seastar-${{ matrix.build_type }}-
ccache-${{ runner.os }}-latest-seastar-
- name: Configure ccache
run: |
mkdir -p "$CCACHE_DIR"
nix develop .#cpp -c ccache --max-size="$CCACHE_MAXSIZE"
nix develop .#cpp -c ccache --zero-stats
- name: Generate the building system
run: |
git config --global --add safe.directory $GITHUB_WORKSPACE
nix develop .#cpp -c cmake \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-G Ninja \
-B $BUILD_DIR \
-S .
- run: |
nix develop .#cpp -c cmake --build $BUILD_DIR --target scylla
- name: Show ccache stats
if: ${{ always() }}
run: |
nix develop .#cpp -c ccache --show-stats