-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (39 loc) · 1.02 KB
/
test-nim-bindings.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
name: Nim bindings
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Run compile script
run: ./scripts/compile.sh nim
shell: bash
- name: Setup Nim
uses: jiro4989/setup-nim-action@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
nim-version: 'stable'
- name: Install Nimble dependencies
working-directory: bindings/nim/nim_code
run: nimble install -Y
- name: Test Nim project
working-directory: bindings/nim/nim_code
run: nimble test -Y