Make parse() a method on Protocol #340
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 tests | |
on: [push, pull_request] | |
jobs: | |
linux: | |
name: Linux | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup LLVM | |
uses: KyleMayes/[email protected] | |
with: | |
version: "17" | |
if: matrix.os == 'ubuntu-latest' | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Rust stable | |
run: | | |
rustup update stable | |
rustup default stable | |
- name: Build IrpTransmogrifier | |
run: | | |
mvn compile | |
mvn package | |
working-directory: irp/tests/IrpTransmogrifier | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose --workspace | |
- name: Run cargo fmt | |
run: cargo fmt --all -- --check | |
- name: Run cargo clippy | |
run: cargo clippy --workspace --tests --bins -- -D warnings | |
- name: Run cargo doc | |
run: cargo doc --workspace --bins |