Skip to content

Fix build on Windows #266

Fix build on Windows

Fix build on Windows #266

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: ./.github/actions/setup
- run: cargo build
unit_test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
llvm:
- version: "22"
feature: llvm22-0
- version: "21"
feature: llvm21-0
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: ./.github/actions/setup
with:
llvm-version: ${{ matrix.llvm.version }}
- run: cargo test --no-default-features --features ${{ matrix.llvm.feature }}
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: ./.github/actions/setup
- run: cargo clippy -- -D warnings
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- run: cargo fmt --check
- run: clang-format --dry-run -Werror wrapper.h $(git ls-files cc)
test:
needs:
- build
- unit_test
- lint
- format
if: always()
runs-on: ubuntu-latest
steps:
- run: for result in ${{ join(needs.*.result, ' ') }}; do [ $result = success ]; done