-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.22 KB
/
rust.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
name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
LD_LIBRARY_PATH: /usr/lib
jobs:
build:
runs-on: ubuntu-latest
container: fedora:38
steps:
- name: Setup cmake
run: sudo dnf -y install cmake
- name: Install dependencies
run: sudo dnf -y install make git clang boost-devel nodejs
- name: Install latest stable Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install vsomeip
run: |
git clone https://github.com/COVESA/vsomeip
cd vsomeip
git checkout cf497232adf84f55947f7a24e1b64e04b49f1f38
mkdir build
cd build
# https://github.com/COVESA/vsomeip/issues/688
# https://github.com/COVESA/vsomeip/issues/527
cmake -E env CXXFLAGS="-Wno-error=stringop-overflow" cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=Debug
make -j
sudo make install
cd ../..
- uses: actions/checkout@v3
- name: Build
run: cargo build --workspace --all-features --verbose
- name: Run tests
run: cargo test --workspace --all-features --verbose