Skip to content

Commit 0dd6fb4

Browse files
committed
update the ci
1 parent a4aeb97 commit 0dd6fb4

File tree

3 files changed

+40
-31
lines changed

3 files changed

+40
-31
lines changed

.github/workflows/apt-packages.txt

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
build-essential
2+
cmake
3+
libgmock-dev
4+
libgtest-dev
5+
libunwind-dev
6+
ninja-build

.github/workflows/ci.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Continuous Integration
2+
3+
4+
on:
5+
pull_request:
6+
push:
7+
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-22.04
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 1
16+
17+
- name: Update APT
18+
run: sudo apt-get update
19+
20+
- name: Install Dependencies
21+
run: sudo xargs apt install -y < .github/workflows/apt-packages.txt
22+
23+
- run: |
24+
mkdir -p build
25+
cd build && cmake ../ -G Ninja \
26+
-DALASKA_ENABLE_COMPILER=OFF \
27+
-DALASKA_ENABLE_TESTING=ON \
28+
-DCMAKE_INSTALL_PREFIX:PATH=../local
29+
30+
- name: Compile
31+
run: cd build && ninja
32+
33+
- name: Run Tests
34+
run: build/runtime/alaska_test

.github/workflows/nix-build.yml

-31
This file was deleted.

0 commit comments

Comments
 (0)