-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 1.1 KB
/
nix-build.yml
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
name: "Nix Build"
on:
pull_request:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# - uses: DeterminateSystems/nix-installer-action@main
# - uses: DeterminateSystems/magic-nix-cache-action@main
# - uses: DeterminateSystems/flake-checker-action@main
- name: Install Deps
run: |
sudo apt update
sudo apt install -y cmake build-essential libgtest-dev libgmock-dev libunwind-dev
- name: Configure
# shell: nix develop --command {0}
run: |
mkdir -p build
cd build && cmake ../ -DALASKA_ENABLE_COMPILER=OFF \
-DALASKA_ENABLE_TESTING=ON \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_CXX_COMPILER=g++ \
-DCMAKE_INSTALL_PREFIX:PATH=../local
- name: Compile
# shell: nix develop --command {0}
run: |
make -C build install
- name: Test
# shell: nix develop --command {0}
run: |
build/runtime/alaska_test