build: Snapcraft from local build file
This commit is contained in:
parent
3d7cd800b9
commit
b440d56401
2 changed files with 26 additions and 5 deletions
23
.github/workflows/main_deploy.yaml
vendored
23
.github/workflows/main_deploy.yaml
vendored
|
|
@ -80,3 +80,26 @@ jobs:
|
||||||
bundle update fastlane
|
bundle update fastlane
|
||||||
bundle exec fastlane deploy_internal_test
|
bundle exec fastlane deploy_internal_test
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
deploy_snapcraft:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
arch: [ x64, arm64 ]
|
||||||
|
env:
|
||||||
|
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
|
||||||
|
runs-on: ${{ matrix.arch == 'arm64' && 'self-hosted' || 'ubuntu-latest'}}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- run: cat .github/workflows/versions.env >> $GITHUB_ENV
|
||||||
|
- name: Install dependencies
|
||||||
|
run: sudo apt-get update && sudo apt-get install git wget curl clang cmake ninja-build pkg-config libgtk-3-dev libblkid-dev liblzma-dev libjsoncpp-dev cmake-data libsecret-1-dev libsecret-1-0 librhash0 libssl-dev libwebkit2gtk-4.1-dev -y
|
||||||
|
- name: Install Flutter
|
||||||
|
run: |
|
||||||
|
git clone --branch ${{ env.FLUTTER_VERSION }} https://github.com/flutter/flutter.git
|
||||||
|
./flutter/bin/flutter doctor
|
||||||
|
- run: ./flutter/bin/flutter pub get
|
||||||
|
- run: ./flutter/bin/flutter build linux --target-platform linux-${{ matrix.arch }} --release
|
||||||
|
- name: Install Snapcraft
|
||||||
|
uses: samuelmeuli/action-snapcraft@v3
|
||||||
|
- run: snapcraft
|
||||||
|
- run: snapcraft push ./*.snap
|
||||||
|
|
@ -71,11 +71,9 @@ parts:
|
||||||
- zenity-integration
|
- zenity-integration
|
||||||
|
|
||||||
fluffychat:
|
fluffychat:
|
||||||
plugin: flutter
|
plugin: dump
|
||||||
source: .
|
source: ./build/linux/*/release
|
||||||
build-packages:
|
source-type: local
|
||||||
- libjsoncpp-dev
|
|
||||||
- curl
|
|
||||||
stage-packages:
|
stage-packages:
|
||||||
- libsecret-1-dev
|
- libsecret-1-dev
|
||||||
- libjsoncpp-dev
|
- libjsoncpp-dev
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue