Skip to content

Commit

Permalink
Add Riscv32 testing
Browse files Browse the repository at this point in the history
add gh actions badge in readme
no-std hex
  • Loading branch information
sayantn committed Dec 8, 2024
1 parent ddffc61 commit 282967f
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/runtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,5 @@ jobs:
shell: bash

- name: Test
run: |
chmod 777 ./ci/run-docker.sh
./ci/run-docker.sh ${{ inputs.arch }} ${{ inputs.target }} ${{ inputs.extra-features }}
run: ./ci/run-docker.sh ${{ inputs.arch }} ${{ inputs.target }} ${{ inputs.extra-features }}
shell: bash
10 changes: 10 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,16 @@ jobs:
target-features: +zkne,+zknd
extra-features: --features=nightly

test-riscv32:
name: Test of RiscV-32
uses: ./.github/workflows/runtest.yml
with:
arch: riscv32
target: riscv32imac-unknown-none-elf
channel: nightly
target-features: +zkne,+zknd
extra-features: --features=nightly

test-software:
strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ constant-time = []
cfg-if = "1.0.0"

[dev-dependencies]
hex = "0.4.3"
hex = { version = "0.4.3", default-features = false }
lazy_static = "1.5.0"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Actions Status](https://github.com/sayantn/aes/actions/workflows/rust.yml/badge.svg)](https://github.com/sayantn/aes/actions)

This is a pure-Rust platform-agnostic [AES](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.197-upd1.pdf) library, that
is focused on reusability and optimal performance.

Expand Down
13 changes: 13 additions & 0 deletions ci/docker/riscv32
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM ubuntu:24.04
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
ca-certificates \
libc6-dev \
gcc-riscv64-linux-gnu \
libc6-dev-riscv64-cross \
qemu-user \
make \
file

ENV CARGO_TARGET_RISCV32IMAC_UNKNOWN_NONE_ELF_LINKER=riscv64-linux-gnu-gcc \
CARGO_TARGET_RISCV32IMAC_UNKNOWN_NONE_ELF_RUNNER="qemu-riscv32 -L /usr/riscv64-linux-gnu -cpu rv32,zk=true"
Empty file modified ci/run-docker.sh
100644 → 100755
Empty file.

0 comments on commit 282967f

Please sign in to comment.