1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
name: Rust
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Update apt
run: sudo apt update
- name: Install apr
run: |
sudo apt update -y
sudo apt install -y libapr1-dev libaprutil1-dev libsvn-dev pkg-config libutf8proc-dev libsqlite3-dev subversion
# Work around https://bugs.debian.org/1055242
- name: "Fix up Version: field in Subversion .pc files"
run: |
svnversion=$(svn --version | grep -oP 'svn, version \K\d+\.\d+\.\d+')
sudo sed -i "s/^Version: \$/Version: $svnversion/" /usr/lib/*/pkgconfig/libsvn_*.pc
- name: Install cargo-all-features
run: cargo install cargo-all-features
- name: Build
run: cargo build-all-features
env:
RUSTFLAGS: -Dwarnings
- name: Run tests
run: cargo test-all-features
env:
RUSTFLAGS: -Dwarnings
- name: Check formatting
run: cargo fmt -- --check
|