File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 33
33
- name : Fetch latest dart_shared_library
34
34
run : |
35
35
dart ./tools/fetch_dart/bin/fetch_dart.dart --verbose
36
+ env :
37
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36
38
- name : Build Shared Library
37
39
run : |
38
40
cmake -DCMAKE_BUILD_TYPE=Release . -B "build"
50
52
continue-on-error : false
51
53
steps :
52
54
- uses : actions/checkout@v3
55
+ - uses : dart-lang/setup-dart@v1
53
56
- uses : actions/download-artifact@v3
54
57
with :
55
58
path : artifacts
59
+ - name : Fetch latest dart_shared_library
60
+ run : |
61
+ dart ./tools/fetch_dart/bin/fetch_dart.dart --verbose
62
+ env :
63
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
56
64
- name : " Create extension"
57
65
run : |
58
66
mkdir -p out/extension
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import 'package:path/path.dart' as path;
9
9
10
10
final destDir = Directory ('src/dart_dll' );
11
11
final destBinDir = Directory (path.join (destDir.path, 'bin/release' ));
12
- final destIncludeDir = Directory (path.join (destDir.path, 'bin/release ' ));
12
+ final destIncludeDir = Directory (path.join (destDir.path, 'include ' ));
13
13
14
14
ArgParser buildParser () {
15
15
return ArgParser ()
@@ -138,7 +138,11 @@ void _fetchLocal(String localPath, Logger l) async {
138
138
}
139
139
140
140
void _fetchFromGithub (String ? version, Logger l) async {
141
- final github = GitHub ();
141
+ final authToken = Platform .environment['GITHUB_TOKEN' ];
142
+ final auth = authToken == null
143
+ ? Authentication .anonymous ()
144
+ : Authentication .withToken (authToken);
145
+ final github = GitHub (auth: auth);
142
146
final repoSlug = RepositorySlug ('fuzzybinary' , 'dart_shared_library' );
143
147
144
148
final Release downloadRelease;
You can’t perform that action at this time.
0 commit comments