-
Notifications
You must be signed in to change notification settings - Fork 1
80 lines (63 loc) · 2.22 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
on: [push, workflow_dispatch]
name: build
jobs:
check:
name: pssh-box-rs check/nightly
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: taiki-e/install-action@cargo-hack
# To remove once https://github.com/MaterializeInc/rust-protobuf-native/issues/20 is resolved
- name: Install gtest
uses: MarkusJx/googletest-installer@v1.1
- name: Install protoc compiler
run: |
sudo apt-get update
sudo apt-get install protobuf-compiler
- run: cargo check
- run: cargo hack check --feature-powerset --no-dev-deps
test-linux:
name: linux
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
# To remove once https://github.com/MaterializeInc/rust-protobuf-native/issues/20 is resolved
- name: Install gtest
uses: MarkusJx/googletest-installer@v1.1
- name: Install protoc compiler
run: |
sudo apt-get update
sudo apt-get install protobuf-compiler
- run: cargo test --jobs 1 --all-features
test-windows:
name: windows
runs-on: windows-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
# To remove once https://github.com/MaterializeInc/rust-protobuf-native/issues/20 is resolved
- name: Install gtest
uses: MarkusJx/googletest-installer@v1.1
- uses: msys2/setup-msys2@v2
with:
install: base-devel autotools mingw-w64-x86_64-toolchain mingw-w64-x86_64-rust mingw-w64-ucrt-x86_64-gcc mingw-w64-x86_64-cmake git
- name: run tests
shell: msys2 {0}
run: cargo test --jobs 1 --all-features
test-macos:
name: macos
runs-on: macos-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
# To remove once https://github.com/MaterializeInc/rust-protobuf-native/issues/20 is resolved
- name: Install gtest
run: brew install googletest
- name: install protobuf compiler
run: brew install protobuf
- run: cargo test --jobs 1 --all-features