Use safe methods, which somehow speed up grid advancing by ~10% (#15) #39
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, pull_request] | |
jobs: | |
build: | |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
steps: | |
# Prevent Git from changing LF to CRLF, which affects test fixtures. | |
- run: git config --global core.autocrlf false | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@nightly | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
key: ${{ matrix.os }} | |
# https://github.com/Swatinem/rust-cache/issues/93#issuecomment-1321064841 | |
- run: cargo update | |
- run: cargo +nightly check --all-targets | |
- uses: taiki-e/install-action@cargo-llvm-cov | |
- run: cargo llvm-cov --lcov --output-path lcov.info | |
- if: matrix.os == 'ubuntu-latest' | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: lcov.info |