Skip to content

Commit 594ae13

Browse files
authored
refactor the readme (#72)
1 parent 4cbd7af commit 594ae13

File tree

3 files changed

+77
-90
lines changed

3 files changed

+77
-90
lines changed

CHANGELOG.md

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,46 @@
1-
Please see the [version history](https://github.com/dart-lang/setup-dart/blob/main/README.md#version-history) in the README.md file.
1+
## v1.4.0
2+
3+
* Automatically create OIDC token for pub.dev.
4+
* Add a reusable workflow for publishing.
5+
6+
## v1.3.0
7+
8+
* The install location of the Dart SDK is now available
9+
in an environment variable, `DART_HOME`
10+
([#43](https://github.com/dart-lang/setup-dart/issues/43)).
11+
* Fixed an issue where cached downloads could lead to unzip issues
12+
on self-hosted runners
13+
([#35](https://github.com/dart-lang/setup-dart/issues/35)).
14+
15+
## v1.2.0
16+
17+
* Fixed a path issue impacting git dependencies on Windows.
18+
19+
## v1.1.0
20+
21+
* Added a `flavor` option setup.sh to allow downloading unpublished builds.
22+
23+
## v1.0.0
24+
25+
* Promoted to 1.0 stable.
26+
27+
## v0.5
28+
29+
* Fixed a Windows `pub global activate` path issue.
30+
31+
## v0.4
32+
33+
* Removed previously deprecated input `channel`. Use the `sdk` input instead.
34+
* Added support for specifying the CPU architecture.
35+
36+
## v0.3
37+
38+
* Added support for installing SDKs from the `main` channel.
39+
40+
## v0.2
41+
42+
* Added support for installing a specific SDK version (e.g. `2.10.0`).
43+
44+
## v0.1
45+
46+
* Initial version.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# How to Contribute
1+
## How to Contribute
22

33
Prior to sending patches and contributions to this project, please file
44
an issue in the issue tracker to ensure there is alignment with the overall

README.md

Lines changed: 30 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,17 @@ and sets up of a Dart SDK for use in actions by:
1010
and [`pub` cache](https://dart.dev/tools/pub/cmd/pub-get#the-system-package-cache)
1111
to the system path
1212

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+
```
1424
1525
## Inputs
1626
@@ -23,47 +33,20 @@ The action takes the following inputs:
2333
See the [Dart SDK archive](https://dart.dev/get-dart/archive) for details.
2434

2535
* `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.
3941

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.
4148

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
6750

6851
Various static checks:
6952

@@ -127,7 +110,7 @@ jobs:
127110
run: dart test
128111
```
129112

130-
## Testing older Dart SDKs example
113+
## Testing older Dart SDKs
131114

132115
The Dart SDK continuously evolves, and new features and tools are added. The Dart
133116
2.10 SDK introduced a new unified `dart` developer tool, which is what we use in
@@ -178,55 +161,14 @@ jobs:
178161
run: pub run test
179162
```
180163

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
223165

224-
* Added support for installing a specific SDK version (e.g. `2.10.0`).
166+
See the [LICENSE](LICENSE) file.
225167

226-
## v0.1
168+
## Contributing
227169

228-
* Initial version.
170+
Contributions are welcome! Please see [CONTRIBUTING.md.md](CONTRIBUTING.md.md).
229171

230-
# License
172+
## Version history
231173

232-
See the [`LICENSE`](LICENSE) file.
174+
Please see out [CHANGELOG.md](CHANGELOG.md) file.

0 commit comments

Comments
 (0)