]>
Commit | Line | Data |
---|---|---|
1 | name: mac | |
2 | on: | |
3 | push: | |
4 | branches: | |
5 | - master | |
6 | pull_request: | |
7 | ||
8 | jobs: | |
9 | test: | |
10 | # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/virtual-environments-for-github-hosted-runners#supported-runners-and-hardware-resources | |
11 | # macOS Catalina 10.15 | |
12 | runs-on: macos-latest | |
13 | name: (${{ matrix.target }}, ${{ matrix.channel }}) | |
14 | strategy: | |
15 | fail-fast: false | |
16 | matrix: | |
17 | target: [ | |
18 | x86_64-apple-darwin, | |
19 | ] | |
20 | channel: [ nightly ] | |
21 | ||
22 | env: | |
23 | CFG_RELEASE_CHANNEL: nightly | |
24 | CFG_RELEASE: nightly | |
25 | ||
26 | steps: | |
27 | - name: checkout | |
28 | uses: actions/checkout@v2 | |
29 | ||
30 | # Run build | |
31 | - name: setup | |
32 | uses: actions-rs/toolchain@v1 | |
33 | with: | |
34 | toolchain: ${{ matrix.channel }}-${{ matrix.target }} | |
35 | target: ${{ matrix.target }} | |
36 | override: true | |
37 | profile: minimal | |
38 | default: true | |
39 | ||
40 | - name: build | |
41 | run: | | |
42 | rustc -Vv | |
43 | cargo -V | |
44 | cargo build | |
45 | ||
46 | - name: test | |
47 | run: cargo test |