Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Commit

Permalink
fix(CI): install riscv64imac-unknown-none-elf in build/libalt_bn128.a
Browse files Browse the repository at this point in the history
error[E0463]: can't find crate for `core`
  |
  = note: the `riscv64imac-unknown-none-elf` target may not be installed
  = help: consider downloading the target with `rustup target add riscv64imac-unknown-none-elf`
  = help: consider building the standard library from source with `cargo build -Zbuild-std`
  • Loading branch information
Flouse committed Sep 22, 2021
1 parent e2a79af commit 71f78f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}

- name: Install Rust components
run: rustup component add rustfmt && rustup component add clippy && rustup target add riscv64imac-unknown-none-elf
run: rustup component add rustfmt && rustup component add clippy
- name: Install moleculec
run: |
test "$(moleculec --version)" = "Moleculec 0.6.1" \
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ build/bignum.o: deps/mbedtls/library/bignum.c

# Pairing cryptography library in Rust
build/libalt_bn128.a:
cd deps/bn/alt_bn128_staticlib && rustup target add riscv64imac-unknown-none-elf
cd deps/bn/alt_bn128_staticlib && cargo build --release --target riscv64imac-unknown-none-elf
cp deps/bn/alt_bn128_staticlib/target/riscv64imac-unknown-none-elf/release/libalt_bn128.a build/

Expand Down

0 comments on commit 71f78f2

Please sign in to comment.