ubuntu-latest is not in fact the latest #4
This file contains hidden or 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: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| name: cargo test | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: sudo apt-get install -y flatbuffers-compiler | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - run: cargo test --all-features | |
| # Check formatting with rustfmt | |
| formatting: | |
| name: cargo fmt | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: sudo apt-get install -y flatbuffers-compiler | |
| # Ensure rustfmt is installed and setup problem matcher | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| components: rustfmt | |
| - name: Rustfmt Check | |
| uses: actions-rust-lang/rustfmt@v1 | |
| # Check licensing and produce a list of licenses | |
| licensing: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: sudo apt-get install -y flatbuffers-compiler | |
| - name: Install cargo-about | |
| uses: baptiste0928/cargo-install@v3 | |
| with: | |
| crate: cargo-about | |
| version: "0.6.4" | |
| - name: Run license check | |
| run: cargo about generate about.hbs > license.html | |
| - name: Archive license file | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: license | |
| path: license.html |