Fix broken appimage docker, ref: https://github.com/AppImageCrafters/… #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
windows-x86_64: | |
name: windows x86_64 | |
runs-on: windows-latest | |
env: | |
build_package_name: veil-wallet win-x86_64 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
- name: Install dependencies | |
run: | | |
flutter config --no-analytics | |
flutter config --enable-windows-desktop | |
flutter pub get | |
- name: Build executable | |
run: flutter build windows --release | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ env.build_package_name }} | |
path: build/windows/runner/Release/ | |
linux-x86_64: | |
name: linux x86_64 | |
runs-on: ubuntu-latest | |
env: | |
build_package_name: veil-wallet AppImage | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
- name: Install dependencies | |
run: | | |
sudo apt update -y | |
sudo apt install -y ninja-build libgtk-3-dev libgtk-3-0 libblkid1 liblzma5 qtbase5-dev qt5-qmake qtdeclarative5-dev cmake | |
flutter config --no-analytics | |
flutter config --enable-linux-desktop | |
flutter pub get | |
- name: Build executable | |
run: flutter build linux --release | |
- name: Build AppImage | |
uses: AppImageCrafters/build-appimage-action@master | |
with: | |
recipe: linux/appimage-recipe.yml | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ env.build_package_name }} | |
path: AppImage |