Commit 0e84c86

NobodyForNothing <82763757+NobodyForNothing@users.noreply.github.com>
2023-05-10 17:10:43
Create CI for linux, windows and android builds
1 parent 8b30865
Changed files (1)
.github
workflows
.github/workflows/CI.yml
@@ -0,0 +1,61 @@
+name: 'linux builds'
+
+on:
+  push:
+    branches: [ "main" ]
+
+jobs:
+  build-android:
+    runs-on: ubuntu-latest
+ 
+    steps:
+    - uses: actions/checkout@v3
+    - uses: actions/setup-java@v2
+      with:
+        distribution: 'zulu'
+        java-version: '11'
+    - uses: subosito/flutter-action@v2
+      with:
+        flutter-version: '3.7.12'
+    - run: flutter pub get
+    - run: flutter test
+    
+    - run: flutter build apk
+
+    - run: |
+            sudo apt-get update -y
+            sudo apt-get install -y ninja-build libgtk-3-dev
+    - run: flutter config --enable-linux-desktop
+    - run: flutter build linux
+  
+  build-lin:
+    runs-on: ubuntu-latest
+ 
+    steps:
+    - uses: actions/checkout@v3
+    - uses: subosito/flutter-action@v2
+      with:
+        flutter-version: '3.7.12'
+    - run: flutter pub get
+    - run: flutter test
+
+    - run: |
+            sudo apt-get update -y
+            sudo apt-get install -y ninja-build libgtk-3-dev
+    - run: flutter config --enable-linux-desktop
+    - run: flutter build linux
+  
+  build-win:
+    runs-on: windows-latest
+ 
+    steps:
+    - uses: actions/checkout@v3
+    - uses: subosito/flutter-action@v2
+      with:
+        flutter-version: '3.7.12'
+    - run: flutter pub get
+    - run: flutter test
+    
+    - run: flutter config --enable-windows-desktop
+    - run: flutter build windows
+