liuyuqi-dellpc 2 years ago
parent
commit
23fb96e28c
1 changed files with 8 additions and 2 deletions
  1. 8 2
      .github/workflows/build.yml

+ 8 - 2
.github/workflows/build.yml

@@ -8,7 +8,7 @@ jobs:
   build:
     strategy:
       matrix:
-        os: [windows-latest]
+        os: [ubuntu-latest, windows-latest]
     runs-on: ${{matrix.os}}
     steps:
       - uses: actions/checkout@v2
@@ -53,6 +53,11 @@ jobs:
         if: ${{ runner.os == 'Windows'}}
         run: |
           flutter build windows
+      
+      - name: Build linux
+        if: ${{ runner.os == 'Linux'}}
+        run: |
+          flutter build linux
 
       # output some file:
       - name: artifact
@@ -63,4 +68,5 @@ jobs:
             # build/app/outputs/flutter-apk/**/*.apk
             build/app/outputs/flutter-apk/app.apk
             build/ios/**/*.ipa
-            build/web/web-app.zip
+            build/web/web-app.zip
+            build/windows/x64/Release/Runner