Skip to content

CI

CI #788

Workflow file for this run

name: CI
env:
CARGO_TERM_COLOR: always
FLATBUFFER_VERSION: 23.5.26
on:
push:
branches: ["main"]
pull_request:
schedule:
- cron: "32 4 * * 5"
workflow_dispatch:
jobs:
test-msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
toolchain: "1.75"
profile: minimal
override: true
- name: Run check
uses: actions-rs/cargo@v1
with:
command: check
args: --all-targets -p planus -p planus-example
test-no_std:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Run check
uses: actions-rs/cargo@v1
with:
command: check
args: --no-default-features --all-targets -p planus -p planus-example
test:
strategy:
matrix:
# os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest]
rust: [stable, beta]
# exclude:
# - os: macos-latest
# rust: beta
# - os: windows-latest
# rust: beta
runs-on: ${{ matrix.os }}
steps:
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install --no-install-recommends graphviz
- uses: actions/checkout@v4.2.1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Flatbuffers binary cache
id: flatbuffers-cache
uses: actions/cache@v4
with:
path: ~/flatc
key: flatbuffers-${{ runner.os }}-${{ env.FLATBUFFER_VERSION }}
- name: Install flatbuffers
if: steps.flatbuffers-cache.outputs.cache-hit != 'true'
run: .github/workflows/build_flatbuffers.sh
- name: Copy flatbuffers binary to /usr/bin
run: sudo cp ~/flatc /usr/local/bin/
- uses: actions-rs/cargo@v1
with:
command: install
args: cargo-make
- uses: actions-rs/cargo@v1
with:
command: make
args: full-test