Add support for the upgrade license flow (#43) #34
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: "CI" | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
env: | |
RUSTFLAGS: -Dwarnings | |
RUST_BACKTRACE: 1 | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Install Rust (rustup) | |
run: rustup update stable --no-self-update && rustup default stable | |
- name: Install Clang-12 | |
uses: KyleMayes/install-llvm-action@v1 | |
with: | |
version: "12.0.0" | |
directory: ${{ runner.temp }}/llvm | |
- name: Add clang++-12 link | |
working-directory: ${{ runner.temp }}/llvm/bin | |
run: ln -s clang clang++-12 | |
- name: Check formatting | |
run: cargo fmt --all -- --check | |
- name: Run clippy | |
run: cargo clippy --all --all-targets | |
- name: Build rdp-rs | |
run: cargo build --verbose --all --all-features | |
- name: Run tests | |
run: cargo test --verbose --all --all-features |