-
Notifications
You must be signed in to change notification settings - Fork 4
103 lines (93 loc) · 2.96 KB
/
Copy pathbuild_nix.yml
File metadata and controls
103 lines (93 loc) · 2.96 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Build Status (*nix)
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build_crates:
name: Build crates (${{ matrix.system }})
runs-on: ${{ matrix.runner_label }}
strategy:
fail-fast: false
matrix:
include:
- system: x86_64-linux
runner_label: ubuntu-latest
- system: x86_64-darwin
runner_label: macos-13
- system: aarch64-darwin
runner_label: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install hwloc
run: |
if [ "${{ matrix.runner_label }}" = "macos-13" ] || [ "${{ matrix.runner_label }}" = "macos-latest" ]; then
brew update && brew install hwloc
else
sudo apt-get update && sudo apt-get install -y libhwloc-dev libudev-dev
fi
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Build crates
run: cargo build --all --all-features
build_examples:
name: Build examples (${{ matrix.system }})
runs-on: ${{ matrix.runner_label }}
strategy:
fail-fast: false
matrix:
include:
- system: x86_64-linux
runner_label: ubuntu-latest
- system: x86_64-darwin
runner_label: macos-13
- system: aarch64-darwin
runner_label: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install hwloc
run: |
if [ "${{ matrix.runner_label }}" = "macos-13" ] || [ "${{ matrix.runner_label }}" = "macos-latest" ]; then
brew update && brew install hwloc
else
sudo apt-get update && sudo apt-get install -y libhwloc-dev libudev-dev
fi
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Build examples
run: cargo build --examples --all-features
build_benchmarks:
name: Build benchmarks (${{ matrix.system }})
runs-on: ${{ matrix.runner_label }}
strategy:
fail-fast: false
matrix:
include:
- system: x86_64-linux
runner_label: ubuntu-latest
- system: x86_64-darwin
runner_label: macos-13
- system: aarch64-darwin
runner_label: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install hwloc
run: |
if [ "${{ matrix.runner_label }}" = "macos-13" ] || [ "${{ matrix.runner_label }}" = "macos-latest" ]; then
brew update && brew install hwloc
else
sudo apt-get update && sudo apt-get install -y libhwloc-dev libudev-dev
fi
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Build benchmarks
run: cargo build --benches --all-features