Skip to content

Commit

Permalink
workflow setup nim
Browse files Browse the repository at this point in the history
  • Loading branch information
lynxcs committed Dec 31, 2023
1 parent f997010 commit 4c5210e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/backend-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/backend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 4c5210e

Please sign in to comment.