2024-09-05 16:42:51 +02:00
|
|
|
name: build+test
|
2023-08-16 23:38:34 +02:00
|
|
|
|
|
|
|
on:
|
2023-08-16 23:39:50 +02:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- dev
|
2023-08-16 23:38:34 +02:00
|
|
|
|
|
|
|
env:
|
2023-08-16 23:39:50 +02:00
|
|
|
CARGO_TERM_COLOR: always
|
2023-08-16 23:38:34 +02:00
|
|
|
|
|
|
|
jobs:
|
2023-08-16 23:39:50 +02:00
|
|
|
build_and_test:
|
|
|
|
name: Rust project - latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
2024-08-17 18:48:42 +02:00
|
|
|
fail-fast: false
|
2023-08-16 23:39:50 +02:00
|
|
|
matrix:
|
2024-08-17 18:38:37 +02:00
|
|
|
features:
|
|
|
|
- rust
|
|
|
|
- lua
|
|
|
|
- java
|
|
|
|
- js
|
|
|
|
- python
|
2023-08-16 23:39:50 +02:00
|
|
|
toolchain:
|
|
|
|
- stable
|
2023-08-16 23:41:57 +02:00
|
|
|
# - beta
|
|
|
|
# - nightly
|
2024-08-17 18:38:37 +02:00
|
|
|
# TODO should re-enable future toolchains so we get warnings on breaking changes
|
2023-08-16 23:39:50 +02:00
|
|
|
steps:
|
2023-08-16 23:48:45 +02:00
|
|
|
- uses: arduino/setup-protoc@v2
|
2023-08-16 23:39:50 +02:00
|
|
|
- uses: actions/checkout@v3
|
2024-02-09 01:26:31 +01:00
|
|
|
- uses: webfactory/ssh-agent@v0.7.0
|
|
|
|
with:
|
|
|
|
ssh-private-key: ${{ secrets.ACTIONS_SSH_DEPLOY_KEY }}
|
2023-08-16 23:39:50 +02:00
|
|
|
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
2024-08-17 18:38:37 +02:00
|
|
|
- run: cargo build --verbose --features=${{ matrix.features }}
|
|
|
|
- run: cargo test --verbose --features=${{ matrix.features }}
|