Skip to content

Commit 4b9199d

Browse files
committed
Add build and test workflow from JSD
1 parent 330493d commit 4b9199d

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

.github/workflows/build.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: build
2+
3+
on:
4+
push:
5+
paths:
6+
- "src/**"
7+
- "test/**"
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-24.04
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: egor-tensin/setup-clang@v1
16+
with:
17+
version: latest
18+
platform: x64
19+
- uses: ConorMacBride/install-package@v1
20+
with:
21+
apt: libreadline-dev
22+
version: latest
23+
platform: x64
24+
- run: |
25+
mkdir -p build
26+
cd build
27+
cmake ..
28+
make

.github/workflows/test.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: test
2+
3+
on:
4+
push:
5+
paths:
6+
- "src/**"
7+
- "test/**"
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-24.04
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: egor-tensin/setup-clang@v1
16+
- uses: ConorMacBride/install-package@v1
17+
with:
18+
apt: valgrind libreadline-dev
19+
version: latest
20+
platform: x64
21+
- run: |
22+
mkdir -p build
23+
cd build
24+
cmake -DBUILD_JSD_TESTS=ON -DCMAKE_BUILD_TYPE=Debug ..
25+
make
26+
make test
27+
env CTEST_OUTPUT_ON_FAILURE=1 make -d memcheck

0 commit comments

Comments
 (0)