Fix actions
This commit is contained in:
65
.github/workflows/ci.yml
vendored
65
.github/workflows/ci.yml
vendored
@@ -9,37 +9,27 @@ permissions:
|
|||||||
contents: write
|
contents: write
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
# continue-on-error: true
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- platform: android
|
- platform: android
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
targets: aab,apk
|
targets: aab,apk
|
||||||
|
|
||||||
- platform: windows
|
- platform: windows
|
||||||
os: windows-latest
|
os: windows-latest
|
||||||
targets: exe
|
targets: exe
|
||||||
|
|
||||||
- platform: linux
|
# - platform: linux
|
||||||
os: ubuntu-latest
|
# os: ubuntu-latest
|
||||||
targets: appimage
|
# targets: appimage
|
||||||
|
|
||||||
- platform: macos
|
|
||||||
os: macos-latest
|
|
||||||
targets: dmg
|
|
||||||
|
|
||||||
# - platform: ios
|
|
||||||
# os: macos-latest
|
|
||||||
# targets: ipa
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Cache Flutter dependencies
|
- name: Cache Flutter dependencies
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
@@ -49,43 +39,23 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pub-cache-
|
${{ runner.os }}-pub-cache-
|
||||||
|
|
||||||
# - name: Cache Go dependencies
|
|
||||||
# uses: actions/cache@v2
|
|
||||||
# with:
|
|
||||||
# path: |
|
|
||||||
# ~/go/pkg/mod
|
|
||||||
# key: ${{ runner.os }}-go-deps-${{ hashFiles('**/go.sum') }}
|
|
||||||
# restore-keys: |
|
|
||||||
# ${{ runner.os }}-go-deps-
|
|
||||||
- name: Setup Flutter
|
- name: Setup Flutter
|
||||||
uses: subosito/flutter-action@v2
|
uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version: '3.10.6'
|
flutter-version: '3.10.6'
|
||||||
channel: 'stable'
|
channel: 'stable'
|
||||||
|
|
||||||
# - name: Setup Go environment
|
|
||||||
# uses: actions/setup-go@v4.0.1
|
|
||||||
|
|
||||||
# - name: Install GCC
|
|
||||||
# if: matrix.os == 'macos-latest'
|
|
||||||
# run: brew install gcc
|
|
||||||
|
|
||||||
# - name: Set up MinGW
|
|
||||||
# if: matrix.os != 'macos-latest'
|
|
||||||
# uses: egor-tensin/setup-mingw@v2
|
|
||||||
# with:
|
|
||||||
# platform: x64
|
|
||||||
|
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
if: matrix.platform == 'android'
|
if: matrix.platform == 'android'
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: "zulu"
|
distribution: "zulu"
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
|
||||||
# - name: Setup Android SDK
|
- name: Setup Flutter Distributor
|
||||||
# if: matrix.platform == 'android'
|
run: |
|
||||||
# uses: android-actions/setup-android@v2
|
dart pub global activate flutter_distributor
|
||||||
|
export PATH="$PATH":"$HOME/.pub-cache/bin"
|
||||||
|
|
||||||
- name: Get Dependencies
|
- name: Get Dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -95,9 +65,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
make gen
|
make gen
|
||||||
make translate
|
make translate
|
||||||
|
|
||||||
|
- name: Get Libs ${{ matrix.platform }}
|
||||||
- name: Generate Libs ${{ matrix.platform }}
|
|
||||||
run: |
|
run: |
|
||||||
make ${{ matrix.platform }}-libs
|
make ${{ matrix.platform }}-libs
|
||||||
|
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -16,11 +16,9 @@ android-release:
|
|||||||
flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
|
flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
|
||||||
|
|
||||||
windows-release:
|
windows-release:
|
||||||
dart pub global activate flutter_distributor && \
|
|
||||||
flutter_distributor package --platform windows --targets exe
|
flutter_distributor package --platform windows --targets exe
|
||||||
|
|
||||||
linux-release:
|
linux-release:
|
||||||
dart pub global activate flutter_distributor && \
|
|
||||||
which locate && \
|
which locate && \
|
||||||
if [ $$? != 0 ]; then \
|
if [ $$? != 0 ]; then \
|
||||||
sudo apt install locate; \
|
sudo apt install locate; \
|
||||||
|
|||||||
Reference in New Issue
Block a user