chore(version): prepare for 0.11.0 (#188) #318
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
workflow_dispatch: | |
jobs: | |
formatting: | |
name: Check formatting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Check formatting | |
shell: pwsh | |
run: | | |
Write-Host "Check formatting" | |
cargo fmt --all -- --check | |
if ($LastExitCode -eq 1) { | |
throw "Bad formatting, please run 'cargo +stable fmt --all'" | |
} | |
lints: | |
name: Lints [${{ matrix.os }}] | |
runs-on: ${{ matrix.runner }} | |
needs: formatting | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ win, osx, linux ] | |
include: | |
- os: win | |
runner: windows-2022 | |
additional-args: --features tsssp | |
- os: osx | |
runner: macos-12 | |
- os: linux | |
runner: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
# Compiling the ffi module is enough to lint the whole sspi workspace | |
- name: Check clippy | |
run: cargo clippy --manifest-path ffi/Cargo.toml ${{ matrix.additional-args }} -- -D warnings | |
tests: | |
name: Tests [${{ matrix.os }}] [${{ matrix.crate-name }}] | |
runs-on: ${{ matrix.runner }} | |
needs: formatting | |
env: | |
SSPI_RS_IS_RUNNING_TESTS: true | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ win, osx, linux ] | |
manifest: [ Cargo.toml, ffi/Cargo.toml ] | |
include: | |
- manifest: Cargo.toml | |
crate-name: sspi | |
- manifest: ffi/Cargo.toml | |
crate-name: sspi-ffi | |
- os: win | |
runner: windows-2022 | |
additional-args: --features tsssp | |
- os: osx | |
runner: macos-12 | |
- os: linux | |
runner: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test | |
run: cargo test --manifest-path ${{ matrix.manifest }} ${{ matrix.additional-args }} | |
wasm: | |
name: WASM target | |
runs-on: ubuntu-latest | |
needs: formatting | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Prepare runner | |
run: sudo apt install wabt | |
- name: Check | |
shell: pwsh | |
run: ./tools/wasm-testcompile/check.ps1 | |
build-native: | |
name: Build native | |
needs: formatting | |
uses: ./.github/workflows/build-native.yml |