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

134 lines
3.5 KiB
YAML
Raw Normal View History

2020-11-10 23:36:07 +00:00
on: [push, pull_request]
name: Continuous integration
jobs:
Stable:
name: Test - stable toolchain
2020-11-10 23:36:07 +00:00
runs-on: ubuntu-latest
strategy:
fail-fast: false
2020-11-10 23:36:07 +00:00
steps:
- name: Checkout Crate
uses: actions/checkout@v3
2020-11-10 23:36:07 +00:00
- name: Checkout Toolchain
# https://github.com/dtolnay/rust-toolchain
uses: dtolnay/rust-toolchain@stable
- name: Running test script
env:
DO_LINT: true
DO_DOCS: true
DO_FEATURE_MATRIX: true
run: ./contrib/test.sh
Beta:
name: Test - beta toolchain
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout Crate
uses: actions/checkout@v3
- name: Checkout Toolchain
uses: dtolnay/rust-toolchain@beta
- name: Running test script
2020-11-10 23:36:07 +00:00
run: ./contrib/test.sh
Nightly:
name: Test - nightly toolchain
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout Crate
uses: actions/checkout@v3
- name: Checkout Toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Install src
run: rustup component add rust-src
- name: Running test script
2020-11-10 23:36:07 +00:00
env:
DO_FMT: true
2020-11-10 23:36:07 +00:00
DO_BENCH: true
DO_DOCSRS: true
DO_ASAN: true
run: ./contrib/test.sh
2020-11-10 23:36:07 +00:00
MSRV:
name: Test - 1.56.1 toolchain
2020-11-10 23:36:07 +00:00
runs-on: ubuntu-latest
strategy:
fail-fast: false
2020-11-10 23:36:07 +00:00
steps:
- name: Checkout Crate
uses: actions/checkout@v3
2020-11-10 23:36:07 +00:00
- name: Checkout Toolchain
uses: dtolnay/rust-toolchain@1.56.1
- name: Running test script
env:
DO_FEATURE_MATRIX: true
2020-11-10 23:36:07 +00:00
run: ./contrib/test.sh
Arch32bit:
name: Test 32-bit version
runs-on: ubuntu-latest
steps:
- name: Checkout Crate
uses: actions/checkout@v3
- name: Checkout Toolchain
uses: dtolnay/rust-toolchain@stable
- name: Add architecture i386
run: sudo dpkg --add-architecture i386
- name: Install i686 gcc
run: sudo apt-get update -y && sudo apt-get install -y gcc-multilib
- name: Install target
run: rustup target add i686-unknown-linux-gnu
- name: Run test on i686
run: cargo test --target i686-unknown-linux-gnu
Cross:
name: Cross test
if: ${{ !github.event.act }}
runs-on: ubuntu-latest
steps:
- name: Checkout Crate
uses: actions/checkout@v3
- name: Checkout Toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install target
run: rustup target add s390x-unknown-linux-gnu
- name: install cross
run: cargo install cross --locked
- name: run cross test
run: cross test --target s390x-unknown-linux-gnu
WASM:
name: WASM
runs-on: ubuntu-latest
steps:
- name: Checkout Crate
uses: actions/checkout@v3
- name: Install clang
run: sudo apt-get install -y clang
- name: Checkout Toolchain
uses: dtolnay/rust-toolchain@stable
- name: Running WASM tests
env:
DO_WASM: true
run: ./contrib/test.sh
API:
name: Check for changes to the public API
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout Crate
uses: actions/checkout@v3
- name: Checkout Toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Install cargo-public-api
run: cargo install --locked cargo-public-api
- name: Running API checker script
run: ./contrib/check-for-api-changes.sh