46
46
python3 sdk/tools/generate_package_config.py
47
47
python3 sdk/tools/generate_sdk_version_file.py
48
48
49
+ - name : Patch Dart SDK 3.1.0-189.0.dev
50
+ if : inputs.ref == '3.1.0-189.0.dev'
51
+ run : |
52
+ cd dart-sdk/sdk
53
+ xargs -n 1 -- sh -xc 'curl -fsSL "https://github.com/dart-lang/sdk/commit/$1.diff" | git apply -' -- <<'EOF'
54
+ 99c68b013bab3c574abe300d710d5bdf8f111c10
55
+ EOF
56
+
57
+ - name : Patch Dart SDK 3.0
58
+ run : |
59
+ cd dart-sdk/sdk
60
+ if ! grep -q alpine-linux-riscv64-sysroot build/config/sysroot.gni; then
61
+ xargs -n 1 -- sh -xc 'curl -fsSLo "$1" "https://github.com/dart-lang/sdk/raw/3.1.0-205.0.dev/$1"' -- <<'EOF'
62
+ build/config/sysroot.gni
63
+ build/linux/alpine_sysroot_scripts/install-sysroot.sh
64
+ EOF
65
+ chmod a+x build/linux/alpine_sysroot_scripts/install-sysroot.sh
66
+ fi
67
+
68
+ - name : Patch perfetto
69
+ run : |
70
+ cd dart-sdk/sdk
71
+ sed -i -e '/#define INCLUDE_PERFETTO_EXT_BASE_UUID_H_/a\
72
+ \
73
+ #include <stdint.h>' -- third_party/perfetto/include/perfetto/ext/base/uuid.h
74
+ cat third_party/perfetto/include/perfetto/ext/base/uuid.h
75
+
49
76
- name : Get Checked-in Dart SDK Version
50
77
id : version
51
78
run : |
@@ -104,6 +131,8 @@ jobs:
104
131
target-arch : arm64
105
132
- host-arch : x64
106
133
target-arch : arm
134
+ - host-arch : x64
135
+ target-arch : riscv64
107
136
108
137
steps :
109
138
- name : Download Artifact
@@ -130,11 +159,17 @@ jobs:
130
159
run : |
131
160
apk add --no-cache alpine-sdk bash clang curl gn lld llvm python3
132
161
133
- - name : Install sysroot
162
+ - name : Install default sysroots
134
163
run : |
135
164
cd dart-sdk/sdk
136
165
./build/linux/alpine_sysroot_scripts/install-sysroot.sh
137
166
167
+ - name : Install riscv64 sysroot
168
+ if : matrix.target-arch == 'riscv64'
169
+ run : |
170
+ cd dart-sdk/sdk
171
+ ./build/linux/alpine_sysroot_scripts/install-sysroot.sh riscv64
172
+
138
173
- name : Setup multiarch musl
139
174
run : |
140
175
cd dart-sdk/sdk
0 commit comments