Introduce log feature #446
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
no-std: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install rust stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Install cargo-make | |
uses: davidB/rust-cargo-make@v1 | |
- name: Default Build | |
run: ALUVM_FEATURES=default cargo make check | |
features: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
feature: [ default, stl, std, alloc, all, secp256k1, curve25519 ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install rust stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Install cargo-make | |
uses: davidB/rust-cargo-make@v1 | |
- name: Build | |
run: ALUVM_FEATURES=${{ matrix.feature }} cargo make check | |
platforms: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-20.04, ubuntu-22.04, macos-12, macos-13, windows-2019, windows-2022 ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install macos dependencies | |
if: startsWith(matrix.os, 'macos') | |
run: brew install pkg-config | |
- name: Install rust stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Install cargo-make | |
uses: davidB/rust-cargo-make@v1 | |
- name: Build with all features | |
run: cargo make check -e "ALUVM_FEATURES=all" | |
toolchains: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: [ nightly, beta, stable, 1.69.0 ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install rust ${{ matrix.toolchain }} | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
override: true | |
- name: Install cargo-make | |
uses: davidB/rust-cargo-make@v1 | |
- name: Build with all features and all targets | |
run: cargo make check-all |