Skip to content

Commit

Permalink
fix: ci, arch target
Browse files Browse the repository at this point in the history
  • Loading branch information
0xWOLAND committed Aug 23, 2024
1 parent 538503a commit 793bd4a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Clippy
run: cargo clippy --all-targets -- -D warnings
- name: Build
run: cargo build --verbose --no-default-features
- name: Run tests
run: cargo test --verbose --features=kzg-test
run: cargo test --verbose
test-no-std:
name: test no_std
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include!("src/enums.rs");
include!("src/consts.rs");
include!("src/pairings.rs");

#[cfg(not(target_os = "riscv32imac-unknown-none-elf"))]
#[cfg(not(target_arch = "riscv32"))]
fn main() {
use std::{fs, io::Write, path::Path};
#[derive(Debug, Clone, PartialEq, Eq)]
Expand Down Expand Up @@ -230,7 +230,7 @@ fn main() {
g2_file.write_all(&g2_bytes).unwrap();
}

#[cfg(target_os = "riscv32imac-unknown-none-elf")]
#[cfg(target_arch = "riscv32")]
fn main() {
// Binaries cannot be built in a RISC-V environment
}
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![cfg_attr(not(test), no_std)]
#[allow(unexpected_cfgs)]
#[macro_use]
extern crate alloc;

Expand Down

0 comments on commit 793bd4a

Please sign in to comment.