forked from UnitedTraders/aeron-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (42 loc) · 1.25 KB
/
main.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
name: Rust CI
on:
push:
pull_request:
types: [opened, reopened, synchronize]
jobs:
test:
name: Test Rust ${{matrix.toolchain}} on ${{matrix.os}}
runs-on: ${{matrix.os}}-latest
strategy:
fail-fast: false
matrix:
toolchain: [stable, nightly]
os: [ubuntu] # linux-only
steps:
- uses: actions/checkout@master
with:
submodules: "true"
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: configure aeronmd
run: mkdir build && cd build && cmake -G "CodeBlocks - Unix Makefiles" ../
working-directory: aeron
- name: build aeronmd
run: make aeronmd && mkdir -p $(systemd-path user-binaries) && mv ./binaries/aeronmd $(systemd-path user-binaries)
working-directory: aeron/build
- name: Set environment variables
shell: bash
run: |
echo "$(systemd-path user-binaries)" >> $GITHUB_PATH
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{matrix.toolchain}}
override: true
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-targets -- --test-threads=1
env:
RUST_LOG: "trace"