github: add a workflow for building scylla with seastar #7
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
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: | |
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: | | |
git fetch origin master | |
git reset --hard origin/master | |
- 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 |