fix: restore the broken star history chart in the README #554
Workflow file for this run
This file contains hidden or 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: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| name: Auto Build CI | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| rust: [stable] | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Install Rust toolchain ${{ matrix.rust }} | |
| run: | | |
| rustup toolchain install ${{ matrix.rust }} --profile minimal --component rustfmt,clippy --target wasm32-unknown-unknown | |
| rustup default ${{ matrix.rust }} | |
| rustc --version | |
| cargo --version | |
| # Work around https://github.com/actions/cache/issues/403 by using GNU tar | |
| # instead of BSD tar. | |
| - name: Install GNU tar | |
| if: matrix.os == 'macos-latest' | |
| run: | | |
| # Install GNU tar if not present, on macOS Homebrew may be in different locations | |
| if ! command -v gtar >/dev/null 2>&1; then | |
| brew install gnu-tar || true | |
| fi | |
| # Add GNU tar to PATH via GITHUB_ENV for actions that rely on gnu-tar | |
| if [ -d "/usr/local/opt/gnu-tar/libexec/gnubin" ]; then | |
| echo "PATH=/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" >> $GITHUB_ENV | |
| elif [ -d "/opt/homebrew/opt/gnu-tar/libexec/gnubin" ]; then | |
| echo "PATH=/opt/homebrew/opt/gnu-tar/libexec/gnubin:$PATH" >> $GITHUB_ENV | |
| fi | |
| - name: Cache cargo registry | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cargo/registry | |
| key: ${{ matrix.os }}-${{ matrix.rust }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }}-${{ secrets.CACHE_VERSION || github.run_id }} | |
| - name: Cache cargo index | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cargo/git | |
| key: ${{ matrix.os }}-${{ matrix.rust }}-cargo-index-${{ hashFiles('**/Cargo.toml') }}-${{ secrets.CACHE_VERSION || github.run_id }} | |
| - name: Cache cargo build | |
| uses: actions/cache@v4 | |
| with: | |
| path: target | |
| key: ${{ matrix.os }}-${{ matrix.rust }}-cargo-build-target-${{ hashFiles('**/Cargo.toml') }}-${{ secrets.CACHE_VERSION || github.run_id }} | |
| - name: Release build async-std | |
| run: cargo build --release --no-default-features --features runtime-async-std,cached,glob,ip,watcher,logging,incremental,explain | |
| - name: Release build tokio | |
| run: cargo build --release --no-default-features --features runtime-tokio,cached,glob,ip,watcher,logging,incremental,explain | |
| - name: Cargo Test For All Features Using async-std | |
| run: cargo test --no-default-features --features runtime-async-std,cached,glob,ip,watcher,logging,incremental,explain | |
| - name: Cargo Test For All Features Using tokio | |
| run: cargo test --no-default-features --features runtime-tokio,cached,glob,ip,watcher,logging,incremental,explain | |
| - name: Cargo Check Wasm | |
| env: | |
| RUSTFLAGS: '--cfg getrandom_backend="wasm_js"' | |
| run: cargo check --target wasm32-unknown-unknown --no-default-features --features runtime-async-std,cached,glob,ip,watcher,logging,incremental | |
| - name: Clippy warnings | |
| run: cargo clippy -- -D warnings | |
| - name: Cargo Fmt Check | |
| run: cargo fmt --all -- --check |