-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.02 KB
/
ci.yml
File metadata and controls
45 lines (42 loc) · 1.02 KB
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
name: test C & JS
on:
push:
branches-ignore:
- 'feat-*'
paths:
- '**/*.nim'
- './*.nimble'
- 'tests/**'
- '.github/workflows/ci.yml'
pull_request:
workflow_dispatch:
env:
nim-version: 'stable'
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache nimble
id: cache-nimble
uses: actions/cache@v4
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-v2
- uses: jiro4989/setup-nim-action@v2
with:
nim-version: ${{ env.nim-version }}
- name: BuildC
run: nimble build --warning[Spacing]:off
- name: Test C backend
run: nimble test
- name: BuildJs
run: nimble buildJs -d:nodejs --warning[Spacing]:off
- name: Test NodeJS backend
run: nimble testNodeJs
- name: setup wasi sdk
uses: konsumer/install-wasi-sdk@v1
- name: BuildWasm
run: |
nimble install https://github.com/nimpylib/wasm_backend
nimble buildWasm --warning[Spacing]:off