Skip to content

build

build #27

Workflow file for this run

name: build
on:
push:
pull_request:
schedule:
- cron: '0 18 * * *'
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Install NASM for aws-lc-rs on Windows
if: runner.os == 'Windows'
uses: ilammy/setup-nasm@v1
- name: Build (debug)
run: cargo build -p graviola
- name: Run tests (debug)
run: cargo test
- name: Build (release)
run: cargo build -p graviola --release
- name: Run tests (release)
run: cargo test --release
- name: Artificial CPU feature tests (x86_64)
if: runner.os == 'Linux'
run: |
# test software fallbacks for sha256 and sha512
env GRAVIOLA_CPU_DISABLE_sha=1 GRAVIOLA_CPU_DISABLE_bmi2=1 cargo test