-
Notifications
You must be signed in to change notification settings - Fork 26
47 lines (34 loc) · 978 Bytes
/
build.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
name: Build & test
on: push
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
flags: --target=x86_64-unknown-linux-musl
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
### Submodule hackery
- name: Initialize submodules
run: git submodule update --init --recursive
### Prereqs
- name: Linux - Install musl-tools
if: runner.os == 'Linux'
run: sudo apt-get install -y musl-tools
- name: Add rustup target
if: matrix.target
run: rustup target add ${{ matrix.target }}
### Test
- name: Test askalono
run: cargo test --verbose --release ${{ matrix.flags }}
- name: Test askalono-cli
run: cargo test --verbose --release ${{ matrix.flags }}
working-directory: cli