rust-secp256k1-unsafe-fast/.github/workflows/rust.yml

79 lines
2.0 KiB
YAML
Raw Normal View History

2020-11-10 23:36:07 +00:00
on: [push, pull_request]
name: Continuous integration
jobs:
Nightly:
name: Nightly - ASan + Bench + Docs
2020-11-10 23:36:07 +00:00
runs-on: ubuntu-latest
steps:
- name: Checkout Crate
2020-11-10 23:36:07 +00:00
uses: actions/checkout@v2
- name: Install clang for ASan
run: sudo apt-get install -y clang
2020-11-10 23:36:07 +00:00
- name: Checkout Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
2020-11-10 23:36:07 +00:00
override: true
components: rust-src
- name: Running address sanitizer
env:
DO_ASAN: true
run: ./contrib/test.sh
- name: Running benchmarks
env:
DO_BENCH: true
run: ./contrib/test.sh
- name: Building docs
env:
DO_DOCS: true
run: ./contrib/test.sh
2020-11-10 23:36:07 +00:00
Tests:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, beta, nightly, 1.29.0]
2020-11-10 23:36:07 +00:00
steps:
- name: Checkout Crate
uses: actions/checkout@v2
- name: Checkout Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Pin cc if rust 1.29
if: matrix.rust == '1.29.0'
run: cargo generate-lockfile --verbose && cargo update -p cc --precise "1.0.41" --verbose
- name: Running cargo
env:
DO_FEATURE_MATRIX: true
2020-11-10 23:36:07 +00:00
run: ./contrib/test.sh
WASM:
name: WASM
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, beta, nightly] # No 1.29 because WASM requires Rust 1.30
steps:
- name: Checkout Crate
uses: actions/checkout@v2
- name: Install clang
run: sudo apt-get install -y clang-9
- name: Checkout Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rust-src
- name: Running WASM tests
env:
DO_WASM: true
run: ./contrib/test.sh