mirror of
https://github.com/logos-messaging/nim-ffi.git
synced 2026-05-06 10:19:33 +00:00
first ci version
This commit is contained in:
parent
df2277e726
commit
033af7ddd0
48
.github/workflows/ci.yml
vendored
Normal file
48
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master, main]
|
||||
pull_request:
|
||||
branches: [master, main]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
nim-version: ['2.2.4', 'stable']
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
name: ${{ matrix.os }} / Nim ${{ matrix.nim-version }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Nim
|
||||
uses: jiro4989/setup-nim-action@v2
|
||||
with:
|
||||
nim-version: ${{ matrix.nim-version }}
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Cache nimble packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.nimble
|
||||
key: ${{ runner.os }}-nimble-${{ matrix.nim-version }}-${{ hashFiles('*.nimble') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-nimble-${{ matrix.nim-version }}-
|
||||
${{ runner.os }}-nimble-
|
||||
|
||||
- name: Install dependencies
|
||||
run: nimble install -y --depsOnly
|
||||
|
||||
- name: Build
|
||||
run: nimble build -y
|
||||
|
||||
- name: Run allocation tests
|
||||
run: nimble test_alloc -y
|
||||
|
||||
- name: Run FFI context tests
|
||||
run: nimble test_ffi -y
|
||||
Loading…
x
Reference in New Issue
Block a user