# Format, lints and tests on every push and pull request. (The packages
# job runs the same gate inside packaging/Dockerfile.)
name: ci
on:
push:
branches: [master]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
jobs:
test:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Build dependencies
run: |
sudo apt-get update -q
sudo apt-get install -y -q --no-install-recommends build-essential cmake perl pkg-config
# The same toolchain as packaging/Dockerfile.
- name: Rust
run: |
curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain 1.98 -c clippy,rustfmt
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
- run: cargo fmt --check
- run: cargo clippy --all-targets --locked -- -D warnings
- run: cargo test --locked
neiam
/scropple-linux
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
985 B · text
History
0463cca