codecov no-stack-check #371
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
| # copy of https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md | ||
| on: | ||
| push: | ||
| branches: [master] | ||
| pull_request: | ||
| branches: | ||
| - "*" | ||
| name: CI | ||
| # Make sure cc linker is used on Linux/macOS | ||
| x-setup-linker: &setup-linker | ||
| - name: Setup linker | ||
| run: | | ||
| mkdir -p .cargo | ||
| cat > .cargo/config.toml <<EOF | ||
| [target.x86_64-unknown-linux-gnu] | ||
| linker = "cc" | ||
| [target.aarch64-apple-darwin] | ||
| linker = "cc" | ||
| [target.x86_64-apple-darwin] | ||
| linker = "cc" | ||
| EOF | ||
| jobs: | ||
| check: | ||
| name: Check | ||
| strategy: | ||
| matrix: | ||
| include: | ||
| - os: ubuntu-latest | ||
| toolchain: stable-x86_64-unknown-linux-gnu | ||
| #- os: windows-latest | ||
| # toolchain: stable-x86_64-pc-windows-gnu | ||
| - os: macos-latest | ||
| toolchain: stable | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| submodules: true | ||
| - name: Checkout submodules | ||
| run: git submodule update --init --recursive | ||
| - uses: actions-rs/toolchain@v1 | ||
| with: | ||
| profile: default | ||
| toolchain: ${{ matrix.toolchain }} | ||
| default: true | ||
| override: true | ||
| - uses: actions-rs/cargo@v1 | ||
| continue-on-error: false | ||
| with: | ||
| command: check | ||
| test: | ||
| name: Test Suite | ||
| strategy: | ||
| matrix: | ||
| include: | ||
| - os: ubuntu-latest | ||
| toolchain: stable-x86_64-unknown-linux-gnu | ||
| #- os: windows-latest | ||
| # toolchain: stable-x86_64-pc-windows-gnu | ||
| - os: macos-latest | ||
| toolchain: stable | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| submodules: true | ||
| - name: Checkout submodules | ||
| run: git submodule update --init --recursive | ||
| - uses: actions-rs/toolchain@v1 | ||
| with: | ||
| profile: default | ||
| toolchain: ${{ matrix.toolchain }} | ||
| default: true | ||
| override: true | ||
| - *setup-linker | ||
| - uses: actions-rs/cargo@v1 | ||
| continue-on-error: false | ||
| with: | ||
| command: build | ||
| - uses: actions-rs/cargo@v1 | ||
| continue-on-error: false | ||
| with: | ||
| command: test | ||
| lints: | ||
| name: Rust lints | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| submodules: true | ||
| - name: Checkout submodules | ||
| run: git submodule update --init --recursive | ||
| - uses: actions-rs/toolchain@v1 | ||
| with: | ||
| profile: default | ||
| toolchain: stable | ||
| override: true | ||
| components: rustfmt, clippy | ||
| - name: Run cargo fmt | ||
| uses: actions-rs/cargo@v1 | ||
| continue-on-error: false | ||
| with: | ||
| command: fmt | ||
| args: --all -- --check | ||
| - name: Run cargo clippy | ||
| uses: actions-rs/cargo@v1 | ||
| continue-on-error: false | ||
| with: | ||
| command: clippy | ||
| args: -- --deny warnings | ||