generated from openpeeps/pistachio
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (42 loc) · 1.32 KB
/
test.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
38
39
40
41
42
name: test
on:
push:
paths-ignore:
- LICENSE
- README.*
- examples
- .github/workflows
pull_request:
paths-ignore:
- LICENSE
- README.*
- examples
- .github/workflows
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
nim-version:
- 'stable'
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.GITHUB_TOKEN }}
- uses: jiro4989/setup-nim-action@v1
with:
nim-version: ${{ matrix.nim-version }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: |
sudo apt install ninja-build
cd src/blend2d/bindings/blend2d_source
git clone https://github.com/asmjit/asmjit 3rdparty/asmjit
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=14 -G Ninja
cmake --build .
cd ../../..
- run: |
ls /home/runner/work/blend2d-nim/blend2d-nim/src/blend2d/bindings/blend2d_source/build/
- run: nimble install -Y
- run: 'nimble test --dynlibOverride:blend2d --passL:"-L/home/runner/work/blend2d-nim/blend2d-nim/src/blend2d/bindings/blend2d_source/build/ -lblend2d" --passC:"-I/home/runner/work/blend2d-nim/blend2d-nim/src/bindings/blend2d_source/src"'