return: build for all
This commit is contained in:
33
.github/workflows/ci.yml
vendored
33
.github/workflows/ci.yml
vendored
@@ -15,15 +15,18 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
# - platform: android
|
||||
# os: ubuntu-latest
|
||||
# targets: aab,apk
|
||||
# target: android
|
||||
- platform: android
|
||||
os: ubuntu-latest
|
||||
targets: apk
|
||||
|
||||
# - platform: windows
|
||||
# os: windows-latest
|
||||
# aarch: amd64
|
||||
# targets: exe
|
||||
# - platform: android-aab
|
||||
# os: ubuntu-latest
|
||||
# targets: aab
|
||||
|
||||
- platform: windows
|
||||
os: windows-latest
|
||||
aarch: amd64
|
||||
targets: exe
|
||||
|
||||
# Flutter does not support x86
|
||||
# - platform: windows
|
||||
@@ -44,10 +47,10 @@ jobs:
|
||||
targets: dmg
|
||||
|
||||
|
||||
# - platform: linux
|
||||
# os: ubuntu-latest
|
||||
# aarch: amd64
|
||||
# targets: AppImage
|
||||
- platform: linux
|
||||
os: ubuntu-latest
|
||||
aarch: amd64
|
||||
targets: AppImage
|
||||
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
@@ -78,7 +81,7 @@ jobs:
|
||||
npm install -g appdmg
|
||||
|
||||
- name: Setup Java
|
||||
if: matrix.platform == 'android'
|
||||
if: startsWith(matrix.platform,'android')
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: "zulu"
|
||||
@@ -95,7 +98,7 @@ jobs:
|
||||
mv appimagetool /usr/local/bin/
|
||||
|
||||
- name: Setup Flutter Distributor
|
||||
if: matrix.platform != 'android'
|
||||
if: ${{ !startsWith(matrix.platform,'android') }}
|
||||
# shell: powershell
|
||||
run: |
|
||||
dart pub global activate flutter_distributor
|
||||
@@ -151,7 +154,9 @@ jobs:
|
||||
mv out/*arm64-v8a*.apk out/hiddify-android-arm64.apk || echo "no arm64 apk"
|
||||
mv out/*armeabi-v7a*.apk out/hiddify-android-arm7.apk || echo "no arm7 apk"
|
||||
mv out/*x86_64*.apk out/hiddify-android-x86_64.apk || echo "no x64 apk"
|
||||
mv out/*.aab out/hiddify-android-playstore.aab || echo "no aab"
|
||||
mv out/*.AppImage out/hiddify-linux-x64.AppImage || echo "no app image"
|
||||
mv out/*.dmg out/hiddify-macos-universal.dmg || echo "no macos dmg"
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user