@@ -10,7 +10,17 @@ and sets up of a Dart SDK for use in actions by:
10
10
and [ ` pub ` cache] ( https://dart.dev/tools/pub/cmd/pub-get#the-system-package-cache )
11
11
to the system path
12
12
13
- # Usage
13
+ ## Usage
14
+
15
+ Install the latest stable SDK and run 'Hello World':
16
+
17
+ ``` yml
18
+ steps :
19
+ - uses : actions/checkout@v3
20
+ - uses : dart-lang/setup-dart@v1
21
+ - run : dart pub get
22
+ - run : dart run bin/hello_world.dart
23
+ ` ` `
14
24
15
25
## Inputs
16
26
@@ -23,47 +33,20 @@ The action takes the following inputs:
23
33
See the [Dart SDK archive](https://dart.dev/get-dart/archive) for details.
24
34
25
35
* `flavor`: Which build flavor to setup.
26
- * Available build flavors are ` raw ` and ` release ` .
27
- * ` release ` flavor contains published builds.
28
- * ` raw ` flavor contains unpublished builds, which can be used by developers
29
- to test against SDK versions before a release.
30
- * ` main ` release channel only supports ` raw ` build flavor.
31
-
32
- * ` architecture ` : The CPU architecture to setup support for. Valid options are
33
- ` x64 ` , ` ia32 ` , ` arm ` , and ` arm64 ` . Note that not all CPU architectures are
34
- supported on all operating systems; see the
35
- [ Dart system requirements] ( https://dart.dev/get-dart#system-requirements )
36
- for valid combinations.
37
-
38
- ## Basic example
36
+ * The available build flavors are `release` and `raw`.
37
+ * The `release` flavor contains published builds.
38
+ * The `raw` flavor contains unpublished builds; these can be used by
39
+ developers to test against SDK versions before a release. Note that the
40
+ ` main` release channel only supports `raw` build flavor.
39
41
40
- Install the latest stable SDK, and run Hello World.
42
+ * `architecture`: The CPU architecture to setup support for.
43
+ * Valid options are `x64`, `ia32`, `arm`, and `arm64`.
44
+ * Note that not all CPU architectures are supported on all operating
45
+ systems; see the
46
+ [Dart system requirements](https://dart.dev/get-dart#system-requirements)
47
+ for valid combinations.
41
48
42
- ``` yml
43
- name : Dart
44
-
45
- on :
46
- push :
47
- branches : [ main ]
48
- pull_request :
49
- branches : [ main ]
50
-
51
- jobs :
52
- build :
53
- runs-on : ubuntu-latest
54
-
55
- steps :
56
- - uses : actions/checkout@v3
57
- - uses : dart-lang/setup-dart@v1
58
-
59
- - name : Install dependencies
60
- run : dart pub get
61
-
62
- - name : Hello world
63
- run : dart run bin/hello_world.dart
64
- ` ` `
65
-
66
- ## Check static analysis, formatting, and test example
49
+ # # Check static analysis, formatting, and run tests
67
50
68
51
Various static checks :
69
52
@@ -127,7 +110,7 @@ jobs:
127
110
run: dart test
128
111
` ` `
129
112
130
- ## Testing older Dart SDKs example
113
+ # # Testing older Dart SDKs
131
114
132
115
The Dart SDK continuously evolves, and new features and tools are added. The Dart
133
116
2.10 SDK introduced a new unified `dart` developer tool, which is what we use in
@@ -178,55 +161,14 @@ jobs:
178
161
run: pub run test
179
162
` ` `
180
163
181
- # Version history
182
-
183
- # # v1.4
184
-
185
- * Automatically create OIDC token for pub.dev.
186
- * Add a reusable workflow for publishing.
187
-
188
- # # v1.3
189
-
190
- * The install location of the Dart SDK is now available
191
- in an environment variable, `DART_HOME`
192
- ([#43](https://github.com/dart-lang/setup-dart/issues/43)).
193
- * Fixed an issue where cached downloads could lead to unzip issues
194
- on self-hosted runners
195
- ([#35](https://github.com/dart-lang/setup-dart/issues/35)).
196
-
197
- # # v1.2
198
-
199
- * Fixed a path issue impacting git dependencies on Windows.
200
-
201
- # # v1.1
202
-
203
- * Added a `flavor` option setup.sh to allow downloading unpublished builds.
204
-
205
- # # v1.0
206
-
207
- * Promoted to 1.0 stable.
208
-
209
- # # v0.5
210
-
211
- * Fixed a Windows `pub global activate` path issue.
212
-
213
- # # v0.4
214
-
215
- * Removed previously deprecated input `channel`. Use the `sdk` input instead.
216
- * Added support for specifying the CPU architecture.
217
-
218
- # # v0.3
219
-
220
- * Added support for installing SDKs from the `main` channel.
221
-
222
- # # v0.2
164
+ # # License
223
165
224
- * Added support for installing a specific SDK version (e.g. `2.10.0`) .
166
+ See the [LICENSE](LICENSE) file .
225
167
226
- # # v0.1
168
+ # # Contributing
227
169
228
- * Initial version .
170
+ Contributions are welcome! Please see [CONTRIBUTING.md.md](CONTRIBUTING.md.md) .
229
171
230
- # License
172
+ # # Version history
231
173
232
- See the [`LICENSE`](LICENSE ) file.
174
+ Please see out [CHANGELOG.md](CHANGELOG.md ) file.
0 commit comments