From 4c5210e0a1a9a741d23678c4fd05bdc71ac25455 Mon Sep 17 00:00:00 2001 From: Domas Kalinauskas Date: Sun, 31 Dec 2023 14:24:05 +0200 Subject: [PATCH] workflow setup nim --- .github/workflows/backend-benchmarks.yml | 6 ++++++ .github/workflows/backend-tests.yml | 22 ++++++++++++++++++++++ .github/workflows/release.yml | 5 +++++ 3 files changed, 33 insertions(+) diff --git a/.github/workflows/backend-benchmarks.yml b/.github/workflows/backend-benchmarks.yml index 6a459343..7bfb9e49 100644 --- a/.github/workflows/backend-benchmarks.yml +++ b/.github/workflows/backend-benchmarks.yml @@ -33,6 +33,12 @@ jobs: distribution: "temurin" java-version: "11" + - if: matrix.backend == 'constantine' + uses: jiro4989/setup-nim-action@v1 + with: + nim-version: '1.6.14' + + - uses: actions/setup-go@v2 with: go-version: ^1.19 diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.yml index 4814e874..fb700a9b 100644 --- a/.github/workflows/backend-tests.yml +++ b/.github/workflows/backend-tests.yml @@ -47,6 +47,12 @@ jobs: with: distribution: "temurin" java-version: "11" + + - if: matrix.backend == 'constantine' + uses: jiro4989/setup-nim-action@v1 + with: + nim-version: '1.6.14' + - uses: actions/setup-python@v4 with: python-version: '3.10' @@ -123,6 +129,22 @@ jobs: command: build args: --manifest-path ${{ matrix.backend }}/Cargo.toml --target wasm32-unknown-unknown --no-default-features + - name: "constantine clean test" + if: matrix.backend == 'constantine' + uses: actions-rs/cargo@v1 + with: + command: clean + args: --manifest-path constantine/Cargo.toml + + - name: "constantine version check" + if: matrix.backend == 'constantine' && matrix.os == 'ubuntu-latest' + run: | + /home/runner/.cargo/bin/rustc -vV + sudo DEBIAN_FRONTEND='noninteractive' apt-fast install \ + --no-install-recommends -yq \ + libgmp-dev \ + llvm + # Check non-parallel backend tests - name: "${{ matrix.backend }} Tests" uses: actions-rs/cargo@v1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b10b1452..f32310e9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,6 +30,11 @@ jobs: steps: - uses: actions/checkout@v2 + - if: matrix.backend == 'constantine' + uses: jiro4989/setup-nim-action@v1 + with: + nim-version: '1.6.14' + - if: matrix.target == 'windows' name: Install MinGW run: |