ci: flutter build check (#95)

This commit is contained in:
Li Wei authored and GitHub committed 2023-03-02 13:57:00 +08:00
1 parent 38ba901956
commit c637b36094
1 file changed
+7 -4
+7 -4
View File
@@ -41,7 +41,7 @@ jobs:
# go get -u golang.org/x/lint/golint # go get -u golang.org/x/lint/golint
# golint -set_exit_status ./... # golint -set_exit_status ./...
test: test:
name: Test name: Test check
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@@ -54,9 +54,8 @@ jobs:
- uses: codecov/codecov-action@v3 - uses: codecov/codecov-action@v3
with: with:
files: ./coverage.txt files: ./coverage.txt
fail_ci_if_error: true
build: build:
name: Build name: Build check
runs-on: ubuntu-latest runs-on: ubuntu-latest
# needs: [lint, test] # needs: [lint, test]
needs: [test] needs: [test]
@@ -66,5 +65,9 @@ jobs:
with: with:
go-version: "^1.19" go-version: "^1.19"
cache: true cache: true
- uses: subosito/flutter-action@v2
- name: Build - name: Build
run: go build github.com/GopeedLab/gopeed/cmd/gopeed run: |
go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/linux/bundle/lib/libgopeed.so github.com/GopeedLab/gopeed/bind/desktop
cd ui/flutter
flutter build linux