chg: remove x86 builds since flutter does not support

This commit is contained in:
Hiddify
2023-08-20 10:40:47 +00:00
parent 53a0b68de1
commit 125484ae7b
2 changed files with 24 additions and 22 deletions

View File

@@ -24,14 +24,15 @@ jobs:
os: windows-latest
aarch: amd64
targets: exe
target: windows-x64
# - platform: windows
# Flutter does not support x86
# - platform: windows
# os: windows-latest
# aarch: 386
# targets: exe
# target: windows-x86
# Flutter does not support x86
# - platform: linux
# os: ubuntu-latest
# aarch: 386
@@ -41,19 +42,13 @@ jobs:
os: macos-11
aarch: universal
targets: dmg
target: macos-universal
- platform: linux
os: ubuntu-latest
aarch: amd64
targets: AppImage
target: linux-x64
# - platform: linux
# os: ubuntu-latest
# aarch: 386
# targets: AppImage
# target: linux-x86
runs-on: ${{ matrix.os }}
steps:
@@ -118,11 +113,11 @@ jobs:
- name: Get Libs ${{ matrix.platform }}
run: |
make ${{ matrix.target }}-libs
make ${{ matrix.platform }}-libs
- name: Release ${{ matrix.target }}
- name: Release ${{ matrix.platform }}
run: |
make ${{ matrix.target }}-release
make ${{ matrix.platform }}-release
- name: Copy to out WINDOWS
if: matrix.platform == 'windows'
@@ -132,10 +127,13 @@ jobs:
foreach ($EXT in $EXT_ARRAY) {
# Find all files with this extension in the current directory, and copy them to "out" directory
Get-ChildItem -Recurse -File -Filter "*setup.$EXT" | Copy-Item -Destination "out" -ErrorAction SilentlyContinue
move out\*setup.$EXT out\${{ matrix.platform }}-x64-setup.$EXT
Get-ChildItem -Recurse -File -Filter "*.$EXT"
}
mkdir ${{ matrix.target }}-portable
copy build/windows/runner/Release ${{ matrix.target }}-portable
Compress-Archive ${{ matrix.target }}-portable out\${{ matrix.target }}-portable.zip
mkdir ${{ matrix.platform }}-portable
copy build/windows/runner/Release ${{ matrix.platform }}-portable
Compress-Archive ${{ matrix.platform }}-portable out\${{ matrix.platform }}-x64-portable.zip
- name: Copy to out unix
if: matrix.platform != 'windows'
@@ -148,6 +146,10 @@ jobs:
# Find all files with this extension in SRC_DIR, and copy them to DST_DIR
find "." -type f -name "*.$EXT" -exec cp {} "out" \;
done
mv out/*arm64-v8a*.apk out/hiddify-android-arm64.apk
mv out/*armeabi-v7a*.apk out/hiddify-android-arm7.apk
mv out/*x86_64*.apk out/hiddify-android-x86_64.apk
mv out/*.AppImage out/hiddify-linux-x64.AppImage
- uses: actions/upload-artifact@v3
with: