mirror of
https://github.com/logos-storage/nim-circom-compat.git
synced 2026-01-03 06:03:06 +00:00
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
continue-on-error: true
|
|
strategy:
|
|
matrix:
|
|
nim:
|
|
- 'binary:2.2.4'
|
|
rust:
|
|
- '1.79.0'
|
|
os:
|
|
- ubuntu-latest
|
|
- windows-latest
|
|
- macOS-latest
|
|
|
|
name: Build nim circom compat ${{ matrix.nim }} on ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: 'true'
|
|
|
|
- name: Set rust ${{ matrix.os }}
|
|
if: matrix.os == 'windows-latest'
|
|
run: |
|
|
rustup set default-host x86_64-pc-windows-gnu
|
|
rustup update ${{ matrix.rust }}
|
|
rustup default ${{ matrix.rust }}
|
|
|
|
- name: Set rust ${{ matrix.os }}
|
|
if: matrix.os != 'windows-latest'
|
|
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
|
|
|
|
- name: Setup nim
|
|
uses: iffy/install-nim@v5
|
|
with:
|
|
version: ${{ matrix.nim }}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
- run: nimble install -y
|
|
- run: nimble test -y
|