Skip to content

unit tests

unit tests #10

Workflow file for this run

name: Continuous Integration
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
permissions:
contents: read
env:
JAVA_VERSION: '17'
jobs:
compile-native:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Set up SBT
uses: coursier/setup-action@v1
with:
jvm: temurin:${{env.JAVA_VERSION}}
apps: sbt
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc make cmake
- name: Build and Install s2n-tls
run: |
git clone https://github.com/awslabs/s2n.git
cd s2n
cmake .
make
sudo make install
- name: Build and compile Rust code
run: |
cd rust-module && cargo build --release
- name: Build Scala native binary
run: sbt nativeLink
- name: Runt Tests
run: |
export LD_LIBRARY_PATH=${PWD}/rust-module/target/release/:$LD_LIBRARY_PATH
sbt test