-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.27 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Build Test Lint
on:
push:
pull_request:
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v4
- name: Cargo build and test
uses: devcontainers/[email protected]
with:
# imageName: ghcr.io/vorausrobotik/voraus-ros-bridge-dev:latest
runCmd: |
bash .devcontainer/entrypoint.sh
ls -a
ls .cargo
cat .cargo/config.toml
cargo build --verbose
cargo test --verbose
- name: Cargo Clippy
uses: devcontainers/[email protected]
with:
runCmd: cargo clippy --all-targets --all-features
# jobs:
# build_and_test:
# name: Build and Test
# runs-on: ubuntu-latest
# strategy:
# matrix:
# toolchain:
# - stable
# - beta
# - nightly
# steps:
# - uses: actions/checkout@v3
# - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
# - run: cargo build --verbose
# - run: cargo test --verbose
# lint:
# name: clippy check
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Run Clippy
# run: cargo clippy --all-targets --all-features