Skip to content

Commit 1cf3d74

Browse files
committed
Update CI config and fix typing in ReposRepository
- Add `jlumbroso/free-disk-space` action to `.github/workflows/ci.yml` to free up disk space before build. - Add explicit `BuildContext` type to `getNewsVersion` in `repos_repository.dart`.
1 parent ce3a968 commit 1cf3d74

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,22 @@ jobs:
1717
build:
1818
name: Build
1919
runs-on: ubuntu-latest
20+
21+
22+
23+
2024
steps:
25+
- name: Free Disk Space
26+
uses: jlumbroso/free-disk-space@main
27+
with:
28+
tool-cache: false
29+
android: false
30+
dotnet: true
31+
haskell: true
32+
large-packages: true
33+
docker-images: true
34+
swap-storage: true
35+
2136
- uses: actions/checkout@v2
2237
- uses: actions/setup-java@v2
2338
with:

lib/common/repositories/repos_repository.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import 'dart:io';
44

55
import 'package:built_value/serializer.dart';
66
import 'package:dio/dio.dart';
7+
import 'package:flutter/material.dart';
8+
import 'package:gsy_github_app_flutter/common/localization/extension.dart';
79
import 'package:gsy_github_app_flutter/common/logger.dart';
810
import 'package:gsy_github_app_flutter/common/net/graphql/client.dart';
911
import 'package:gsy_github_app_flutter/common/net/transformer.dart';
@@ -673,7 +675,7 @@ class ReposRepository {
673675
}
674676

675677
/// 版本更新
676-
static getNewsVersion(context, showTip) async {
678+
static getNewsVersion(BuildContext context, showTip) async {
677679
//ios不检查更新
678680
if (Platform.isIOS) {
679681
return;

0 commit comments

Comments
 (0)