removed arm build, added appimage build to CI
This commit is contained in:
@@ -48,66 +48,17 @@ jobs:
|
|||||||
# - name: Test project
|
# - name: Test project
|
||||||
# run: flutter test
|
# run: flutter test
|
||||||
|
|
||||||
- name: Build
|
- name: Build App
|
||||||
run: flutter build linux
|
run: flutter build linux
|
||||||
|
|
||||||
- name: Copy Build Files
|
- name: Build AppImage
|
||||||
run: cp -r build/linux/*/release/bundle prod/
|
uses: docker://appimagecrafters/appimage-builder:1.1.0
|
||||||
|
with:
|
||||||
|
entrypoint: appimage-builder
|
||||||
|
args: --recipe ./configs/AppImageBuilder_amd64 --skip-test
|
||||||
|
|
||||||
- name: Save Artifacts
|
- name: Save Artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: PROD.amd64
|
name: Prod.appimage
|
||||||
path: prod/
|
path: prod.appimage
|
||||||
|
|
||||||
ARM64:
|
|
||||||
name: ARM64 Build
|
|
||||||
runs-on: linux-arm64
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
channel: master
|
|
||||||
|
|
||||||
- uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: /tmp/.buildx-cache
|
|
||||||
key: ${{ runner.os }}-buildx-${{ gitea.sha }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-buildx-
|
|
||||||
|
|
||||||
- name: Install Framework Dependencies
|
|
||||||
run: |
|
|
||||||
sudo apt-get update -y
|
|
||||||
sudo apt install -y ninja-build cmake clang libgtk-3-dev
|
|
||||||
|
|
||||||
- name: Install Flutter
|
|
||||||
uses: subosito/flutter-action@v2
|
|
||||||
with:
|
|
||||||
channel: master
|
|
||||||
flutter-version: 3.38.9
|
|
||||||
|
|
||||||
- name: Check Flutter Installation
|
|
||||||
run: flutter doctor -v
|
|
||||||
|
|
||||||
- name: Get Project Dependencies
|
|
||||||
run: flutter pub get
|
|
||||||
|
|
||||||
# - name: Analyze project
|
|
||||||
# run: flutter analyze
|
|
||||||
|
|
||||||
# - name: Test project
|
|
||||||
# run: flutter test
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: flutter build linux
|
|
||||||
|
|
||||||
- name: Copy Build Files
|
|
||||||
run: cp -r build/linux/*/release/bundle prod/
|
|
||||||
|
|
||||||
- name: Save Artifacts
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: PROD.arm64
|
|
||||||
path: prod/
|
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
# appimage-builder recipe see https://appimage-builder.readthedocs.io for details
|
|
||||||
version: 1
|
|
||||||
script:
|
|
||||||
- rm -rf AppDir | true
|
|
||||||
- cp -r build/linux/arm64/release/bundle AppDir
|
|
||||||
- mkdir -p AppDir/usr/share/icons/hicolor/64x64/apps/
|
|
||||||
- cp configs/prodIcon.png AppDir/usr/share/icons/hicolor/64x64/apps/
|
|
||||||
AppDir:
|
|
||||||
path: ./AppDir
|
|
||||||
app_info:
|
|
||||||
id: net.inaph.prod
|
|
||||||
name: Prod
|
|
||||||
icon: prodIcon
|
|
||||||
version: latest
|
|
||||||
exec: prod
|
|
||||||
exec_args: $@
|
|
||||||
files:
|
|
||||||
exclude:
|
|
||||||
- usr/share/man
|
|
||||||
- usr/share/doc/*/README.*
|
|
||||||
- usr/share/doc/*/changelog.*
|
|
||||||
- usr/share/doc/*/NEWS.*
|
|
||||||
- usr/share/doc/*/TODO.*
|
|
||||||
AppImage:
|
|
||||||
arch: arm64
|
|
||||||
update-information: guess
|
|
||||||
Reference in New Issue
Block a user