Update Styling guide: add sentences explaining how to increase specificity of entries #628
Workflow file for this run
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: Build | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- uses: Swatinem/rust-cache@v2 | |
name: Cache dependencies | |
- name: Install build deps | |
run: | | |
sudo apt-get update | |
sudo apt-get install libgtk-3-dev libgtk-layer-shell-dev | |
- name: Check formatting | |
run: cargo fmt --check | |
- name: Clippy (base features) | |
uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --no-default-features --features config+json | |
- name: Clippy (all features) | |
uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --all-features | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
build-nix: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v20 | |
with: | |
install_url: https://nixos.org/nix/install | |
extra_nix_config: | | |
auto-optimise-store = true | |
experimental-features = nix-command flakes | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: jakestanger | |
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- run: nix build --print-build-logs |