Skip to content

Minor improvements #502

Minor improvements

Minor improvements #502

Workflow file for this run

name: build
env:
OS_STR_BYTES_CHECKED_CONVERSIONS: 1
on:
pull_request:
push:
branches:
- master
schedule:
- cron: 0 0 * * FRI
jobs:
build:
runs-on: ${{ matrix.platform }}
env:
__OS_STR_BYTES_CI: 1
steps:
- uses: dylni/build-actions/setup@master
with:
version: beta
- run: |
rustup component add clippy rustfmt
cargo install cargo-hack
cargo hack clippy ${{ env.cargo_hack_options }}
cargo hack clippy ${{ env.cargo_hack_options }} --tests
cargo fmt --check
shell: bash
env:
cargo_hack_options: --feature-powerset --optional-deps
timeout-minutes: 10
strategy:
matrix:
platform: [ubuntu-latest, windows-latest]
build-other:
needs: [build]
runs-on: ubuntu-latest
env:
__OS_STR_BYTES_CI: 1
steps:
- uses: dylni/build-actions/build-other@master
with:
target: ${{ matrix.target }}
version: ${{ matrix.version }}
timeout-minutes: 10
strategy:
matrix:
target: [wasm32-unknown-unknown, wasm32-wasi, x86_64-unknown-redox]
version: [beta, nightly]
include:
- target: x86_64-fortanix-unknown-sgx
version: nightly
- target: x86_64-unknown-uefi
version: nightly
test:
needs: [build]
runs-on: ${{ matrix.platform }}
steps:
- uses: dylni/build-actions/test@master
with:
version: ${{ matrix.version }}
- run: cargo test --no-default-features --features raw_os_str
timeout-minutes: 10
strategy:
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
version: [beta, nightly]