-
Notifications
You must be signed in to change notification settings - Fork 39
83 lines (65 loc) · 2 KB
/
intl4x.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
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
name: package:intl4x
permissions: read-all
on:
pull_request:
branches: [ main ]
paths:
- '.github/workflows/intl4x.yml'
- 'pkgs/intl4x/**'
push:
branches: [ main ]
paths:
- '.github/workflows/intl4x.yml'
- 'pkgs/intl4x/**'
schedule:
- cron: '0 0 * * 0' # weekly
jobs:
build:
runs-on: ${{ matrix.os }}
env:
ICU4X_BUILD_MODE: checkout
LOCAL_ICU4X_CHECKOUT: ${{ github.workspace }}/submodules/icu4x
defaults:
run:
working-directory: pkgs/intl4x
strategy:
matrix:
sdk: [stable, dev] # {pkgs.versions}
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- sdk: dev
run-tests: true
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
with:
submodules: true
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{matrix.sdk}}
- run: dart --enable-experiment=native-assets pub get
- run: dart --enable-experiment=native-assets analyze --fatal-infos
- run: dart --enable-experiment=native-assets format --output=none --set-exit-if-changed .
if: ${{matrix.run-tests}}
- run: dart --enable-experiment=native-assets test
if: ${{matrix.run-tests}}
- run: dart --enable-experiment=native-assets test -p chrome
if: ${{matrix.run-tests}}
build_fetch:
runs-on: ${{ matrix.os }}
env:
ICU4X_BUILD_MODE: fetch
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
defaults:
run:
working-directory: pkgs/intl4x
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
with:
submodules: true
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: dev
- run: dart --enable-experiment=native-assets pub get
- run: dart --enable-experiment=native-assets test