-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (41 loc) · 1.4 KB
/
ci.yaml
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
name: ci-flow
on:
pull_request:
push:
branches:
- master
- "releases/*"
# tags-ignore:
# - "[0-9]+.[0-9]+.[0-9]+*"
jobs:
build:
runs-on: ${{ matrix.os.imageName }}
strategy:
matrix:
rust_toolchain: ["stable"]
os:
- imageName: ubuntu-latest
profile_rustup: default
profile_ci_flow: ci-static-code-analysis-tasks
- imageName: "macOS-latest"
profile_rustup: minimal
profile_ci_flow: none
- imageName: windows-latest
profile_rustup: minimal
profile_ci_flow: none
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust_toolchain }}
override: true
profile: ${{matrix.os.profile_rustup}}
- uses: davidB/rust-cargo-make@v1
- uses: actions/checkout@v4
- name: Run tests
run: cargo make --profile "${{matrix.os.profile_ci_flow}}" ci-flow
env:
# for list of xcode sdk see https://help.github.com/en/actions/automating-your-workflow-with-github-actions/software-installed-on-github-hosted-runners#xcode
# DEVELOPER_DIR: "/Applications/Xcode_11.app/Contents/Developer"
CARGO_MAKE_RUN_CODECOV: "true"
# to have CODECOV_TOKEN go to https://codecov.io/gh/${GITHUB_USER}/${GITHUB_REPO}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}