forked from scylladb/seastar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github: add a workflow for building scylla with seastar
Signed-off-by: Kefu Chai <[email protected]>
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Build Scylla | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
- 'scylla' | ||
schedule: | ||
# only at 5AM Saturday | ||
- cron: '0 5 * * SAT' | ||
|
||
permissions: {} | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-scylla: | ||
name: Run clang-tidy | ||
runs-on: ubuntu-latest | ||
container: fedora:40 | ||
steps: | ||
- run: | | ||
sudo dnf -y install git | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: scylladb/scylladb | ||
submodules: true | ||
- name: update seastar submodule | ||
run: | | ||
export GIT_EDITOR=true | ||
./scripts/refresh-submodules.sh seastar | ||
- name: Install build dependencies | ||
run: | | ||
sudo ./install-dependencies.sh | ||
- name: Generate the building system | ||
run: | | ||
cmake \ | ||
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \ | ||
-DCMAKE_C_COMPILER=clang \ | ||
-DCMAKE_CXX_COMPILER=clang++ \ | ||
-G Ninja \ | ||
-B $BUILD_DIR \ | ||
-S . | ||
- run: | | ||
cmake --build $BUILD_DIR --target scylla |