-
-
Notifications
You must be signed in to change notification settings - Fork 10
41 lines (37 loc) · 1.14 KB
/
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
name: Build
on:
pull_request:
branches: [main]
push:
branches: [main]
schedule:
# Run every day at 10:00 AM UTC.
- cron: '0 10 * * *'
jobs:
build:
strategy:
# We want to see the results on stable even if main fails (and vice
# versa). This prevents one failure from stopping the entire run.
fail-fast: false
# Free config supports up to 20 concurrent jobs, so pick a sparse matrix
# that tiles the space well.
matrix:
include:
- os: windows-latest
sdk: main
- os: windows-2022
sdk: beta
- os: windows-2019
sdk: stable
- os: ubuntu-latest
sdk: stable
uses: halildurmus/workflows/.github/workflows/dart_package.yml@main
with:
dart_sdk: ${{ matrix.sdk }}
run_tests: ${{ matrix.os != 'ubuntu-latest' && matrix.sdk != 'main' }}
runs_on: ${{ matrix.os }}
upload_coverage: ${{ matrix.sdk == 'main' }}
validate_dartdoc_links: ${{ matrix.sdk == 'main' }}
verify_pana_score: ${{ matrix.os == 'ubuntu-latest' }}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}