Merge pull request #447 from DogeDark/gist-share #505
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: check examples | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- examples/** | |
- docs-src/** | |
- packages/**/*.rs | |
- packages/**/Cargo.toml | |
- .github/** | |
- lib.rs | |
- Cargo.toml | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
branches: | |
- main | |
paths: | |
- examples/** | |
- docs-src/** | |
- packages/**/*.rs | |
- packages/**/Cargo.toml | |
- .github/** | |
- lib.rs | |
- Cargo.toml | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev libxdo-dev | |
version: 1.0 | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
cache-all-crates: "true" | |
cache-on-failure: "false" | |
cache-directories: "target/dx" | |
- name: Check | |
run: cargo check --workspace --all-features |