Skip to content

Commit

Permalink
nix: add building oid to the flake
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeHillion committed Aug 13, 2024
1 parent ed5fcfe commit 5a1a134
Show file tree
Hide file tree
Showing 8 changed files with 335 additions and 115 deletions.
18 changes: 13 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,26 @@ jobs:
libgtest-dev \
libjemalloc-dev \
libmsgpack-dev \
libomp-12-dev \
liburing-dev \
libzstd-dev \
llvm-15-dev \
ninja-build \
pkg-config \
python3-setuptools
pip3 install toml
# Ubuntu 22.04 CMake is too old and we don't have a newer image yet
git clone --depth 1 --branch v3.30.2 https://github.com/Kitware/CMake.git /tmp/cmake
(cd /tmp/cmake && cmake -B build/ -G Ninja && cmake --build build/)
environment:
DEBIAN_FRONTEND: noninteractive
- checkout
- run:
name: Build
command: |
cmake -G Ninja -B build/ -DWITH_FLAKY_TESTS=Off -DCODE_COVERAGE=On -DWARNINGS_AS_ERRORS=<< parameters.warnings_as_errors >>
cmake --build build/
/tmp/cmake/build/bin/cmake -G Ninja -B build/ -DWITH_FLAKY_TESTS=Off -DCODE_COVERAGE=On -DWARNINGS_AS_ERRORS=<< parameters.warnings_as_errors >>
ninja -C build/
# Testing rubbish:
cp test/ci.oid.toml build/testing.oid.toml
- persist_to_workspace:
Expand Down Expand Up @@ -131,10 +137,12 @@ jobs:
sudo apt-get install -y \
clang-15 \
libboost-all-dev \
libgflags-dev \
llvm-15-dev \
libfmt-dev \
libjemalloc-dev
libgflags-dev \
libgoogle-glog-dev \
libjemalloc-dev \
libomp-12-dev \
llvm-15-dev
environment:
DEBIAN_FRONTEND: noninteractive
- run:
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/object-introspection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,24 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.0
- uses: cachix/install-nix-action@v25
- uses: actions/checkout@v4.1.7
- uses: cachix/install-nix-action@v27
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: nix fmt
run: |-
nix --experimental-features 'nix-command flakes' fmt
git diff --exit-code
build:
runs-on: ubuntu-latest
strategy:
matrix:
llvm_version: [15]
steps:
- uses: actions/checkout@v4.1.7
- uses: cachix/install-nix-action@v27
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: build (LLVM ${{ matrix.llvm_version }})
run: nix build -L .#oid-llvm${{ matrix.llvm_version }}
Loading

0 comments on commit 5a1a134

Please sign in to comment.