Add support of absolute paths #417
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: [push, pull_request] | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| build: [stable, beta, nightly, macos, windows] | |
| include: | |
| - build: stable | |
| os: ubuntu-latest | |
| rust: stable | |
| - build: beta | |
| os: ubuntu-latest | |
| rust: beta | |
| - build: nightly | |
| os: ubuntu-latest | |
| rust: nightly | |
| - build: macos | |
| os: macos-latest | |
| rust: stable | |
| - build: windows | |
| os: windows-latest | |
| rust: stable | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Install Rust | |
| run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }} | |
| shell: bash | |
| - run: cargo test | |
| - run: cargo test --no-default-features | |
| - name: Run cargo test with root | |
| run: sudo -E $(which cargo) test | |
| if: ${{ matrix.os == 'ubuntu-latest' }} | |
| wasm: | |
| name: Wasm | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - run: rustup target add wasm32-unknown-emscripten | |
| - run: cargo build --target=wasm32-unknown-emscripten | |
| rustfmt: | |
| name: Rustfmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Install Rust | |
| run: rustup update stable && rustup default stable && rustup component add rustfmt | |
| - run: cargo fmt -- --check | |
| semver-checks: | |
| name: Semver Checks | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@master | |
| - uses: obi1kenobi/cargo-semver-checks-action@v2 | |
| with: | |
| # Pinned until cargo-semver-checks supports rustdoc format v57 (Rust 1.93+) | |
| rust-toolchain: "1.92.0" | |
| publish_docs: | |
| name: Publish Documentation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Install Rust | |
| run: rustup update stable && rustup default stable | |
| - name: Build documentation | |
| run: cargo doc --no-deps --all-features | |
| - name: Publish documentation | |
| run: | | |
| cd target/doc | |
| git init | |
| git add . | |
| git -c user.name='ci' -c user.email='ci' commit -m init | |
| git push -f -q https://git:${{ secrets.github_token }}@github.com/${{ github.repository }} HEAD:gh-pages | |
| if: github.event_name == 'push' && github.event.ref == 'refs/heads/master' |