-
Notifications
You must be signed in to change notification settings - Fork 7
73 lines (65 loc) · 1.58 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: test
on: [pull_request, workflow_dispatch]
jobs:
linux:
name: linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: make all
- name: Run tests
run: ./build/test
windows:
name: windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install MinGW
run: |
choco install mingw
echo "C:\tools\mingw64\bin" >> $GITHUB_PATH
- name: Build
run: CC=gcc make all
shell: bash
- name: Run tests
run: ./build/test.exe
shell: bash
macos:
name: macos
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: make all
- name: Run tests
run: ./build/test
rust-bindings:
runs-on: ubuntu-latest
name: (${{ matrix.target }})
strategy:
matrix:
target: [
x86_64-unknown-linux-gnu,
aarch64-unknown-linux-gnu,
]
steps:
- name: checkout
uses: actions/checkout@v3
- name: install rustup
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh
sh rustup-init.sh -y --default-toolchain none
rustup target add ${{ matrix.target }}
- name: Build and Test
run: |
cargo build --release
cargo test
nim:
name: nim
runs-on: ubuntu-latest
steps:
- uses: jiro4989/setup-nim-action@v1
- uses: actions/checkout@v3
- name: Run Nim test
run: nim c -r tests/test_hashtree_abi.nim