Skip to content

Commit cd05634

Browse files
authored
Remove dart 2.x support
1 parent 91c7103 commit cd05634

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

.github/workflows/build.yml

+5-18
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
image: docker.io/library/debian
2424

2525
outputs:
26-
checked-in-sdk-version: ${{ steps.fetch.outputs.version }}
26+
checked-in-sdk-version: ${{ steps.version.outputs.version }}
2727

2828
steps:
2929
- name: Install build tools
@@ -32,7 +32,6 @@ jobs:
3232
apt-get install --no-install-recommends -y ca-certificates curl git python3
3333
3434
- name: Fetch Dart SDK
35-
id: fetch
3635
run: |
3736
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
3837
export DEPOT_TOOLS_UPDATE=0 PATH=$PWD/depot_tools:$PATH
@@ -44,24 +43,17 @@ jobs:
4443
python3 sdk/tools/generate_package_config.py
4544
python3 sdk/tools/generate_sdk_version_file.py
4645
47-
46+
- name: Get Checked-in Dart SDK Version
47+
id: version
48+
run: |
4849
tee /tmp/version.dart <<'EOF'
4950
import 'dart:io' show Platform;
50-
5151
void main() {
5252
print('version=' + Platform.version.split(' ')[0]);
5353
}
5454
EOF
55-
sdk/tools/sdks/dart-sdk/bin/dart run /tmp/version.dart | tee -a $GITHUB_OUTPUT
56-
57-
- name: Patch Dart SDK 2.19
58-
if: startsWith(inputs.ref, '2.19.')
59-
run: |
6055
cd dart-sdk/sdk
61-
xargs -n 1 -- sh -xc 'curl -fsSL "https://github.com/dart-lang/sdk/commit/$1.diff" | git apply -' -- <<'EOF'
62-
afe921902609e95e5050dad1fe82d2a69bcdcf95
63-
4486a3f45dc40aa8ab1357db38da465c5899631f
64-
EOF
56+
./tools/sdks/dart-sdk/bin/dart run /tmp/version.dart | tee -a $GITHUB_OUTPUT
6557
6658
- name: Remove build tools
6759
run: |
@@ -108,11 +100,6 @@ jobs:
108100
apt-get update
109101
apt-get install --no-install-recommends -y ca-certificates curl git python3 xz-utils
110102
111-
- name: Install build tools
112-
if: startsWith(needs.archive.outputs.checked-in-sdk-version, '2.18.')
113-
run: |
114-
apt-get install --no-install-recommends -y ninja-build
115-
116103
- name: Download Dart SDK
117104
id: download
118105
run: |

0 commit comments

Comments
 (0)