Try to fix package name for flatbuffers compiler on linux for GH action #259
Workflow file for this run
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: Rust | |
on: [ push, pull_request ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_default_linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: cmake python3-dev swig flatbuffers-compiler | |
version: 1.1 | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
build_all_linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: cmake python3-dev swig flatbuffers-compiler | |
version: 1.1 | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Build | |
run: cargo build --verbose --all-features --all-targets | |
- name: Run tests | |
run: cargo test --verbose --all-features --all-targets | |
# Build "all" features not a thing on MacOS since Relbox won't compile and run on it. | |
build_default_macos: | |
runs-on: macos-latest | |
steps: | |
- uses: tecolicom/actions-use-homebrew-tools@v1 | |
with: | |
tools: cmake flatbuffers flatcc | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
clippy_check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: cmake python3-dev swig flatbuffers-compiler | |
version: 1.1 | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- run: rustup component add clippy | |
- uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --all-features |