Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ test --test_strategy=standalone
# By default build in C++17 mode using the Homegrown scheduler for parallelism.
# build --repo_env=CC=g++
build --cxxopt=-std=c++17
build --cxxopt=-mcx16 # 16 byte CAS
# Apply -mcx16 only for x86_64
build:x86_64 --cxxopt=-mcx16 # use 16 byte CAS
build --cxxopt=-DHOMEGROWN # use the homegrown scheduler
build --cxxopt=-DLONG # use 8 byte vertex identifiers
build --cxxopt=-DAMORTIZEDPD # use amortized_bytepd encoding scheme for compressed graphs
Expand Down Expand Up @@ -75,4 +76,4 @@ build:sage --define use_numa=true

# Disable Bzlmod for every Bazel command
# Turn it on after we migrate to use bzlmod
common --enable_bzlmod=False
common --enable_bzlmod=False
1 change: 1 addition & 0 deletions .bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.2.0
43 changes: 43 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Bazel Build and Test

on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]

jobs:
build-and-test:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
runner:
- ubuntu-24.04 # amd64
- ubuntu-24.04-arm # arm64
fail-fast: false

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Bazelisk
run: |
ARCH=$([[ "${{ matrix.runner }}" == "ubuntu-24.04" ]] && echo "amd64" || echo "arm64")
curl -LO "https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-${ARCH}"
chmod +x bazelisk-linux-*
sudo mv bazelisk-linux-* /usr/local/bin/bazel

- name: Cache Bazel
uses: actions/cache@v4
with:
path: |
~/.cache/bazel
~/.cache/bazelisk
key: bazel-${{ matrix.runner }}-${{ hashFiles('WORKSPACE', '**/BUILD', '**/*.bzl') }}
restore-keys: |
bazel-${{ matrix.runner }}-

- name: Run Bazel Build
run: |
ARCH=$([[ "${{ matrix.runner }}" == "ubuntu-24.04" ]] && echo "amd64" || echo "arm64")
bazel build //clusterers:cluster-in-memory_main
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

git_repository(
name = "parcluster",
remote = "git@github.com:ParAlg/InMemoryClusteringAPI.git",
remote = "https://github.com/ParAlg/InMemoryClusteringAPI.git",
commit = "ccf763ad6dcf0e36c3b0b212d429ef19c2cbf837",
strip_prefix = "include/",
)
Expand Down