Make more modules panic free #2108
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: Specs | |
on: | |
push: | |
branches: [ "main", "dev" ] | |
pull_request: | |
branches: [ "main", "dev" ] | |
merge_group: | |
env: | |
CARGO_TERM_COLOR: always | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Setup Ubuntu | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt-get install ninja-build | |
- name: Setup MacOS | |
if: matrix.os == 'macos-latest' | |
run: brew install ninja | |
- name: Setup Windows | |
if: matrix.os == 'windows-latest' | |
run: | | |
echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append | |
vcpkg install openssl:x64-windows-static-md | |
- uses: actions/checkout@v3 | |
- name: Update dependencies | |
run: cargo update | |
- name: Build | |
working-directory: specs | |
run: cargo build --verbose | |
- name: Run tests | |
working-directory: specs | |
run: cargo test --verbose |