mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 23:42:00 +01:00
This workflow is not manually triggered and can create automatically the appropriate tag. The build number is not increase to the next multiple of ten, to stay in sync with the iOS releases, which seem to cause more trouble and often need reuploads. The individual steps have been moved out to their own files, for better readability. We also now build the app for all supported platforms.
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
#name: Build Linux
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
ref:
|
|
required: true
|
|
type: string
|
|
jobs:
|
|
build_linux:
|
|
name: Flathub
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout application
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ inputs.ref }}
|
|
|
|
- name: Common setup
|
|
uses: ./.github/actions/flutter-common
|
|
|
|
# Compare with list of available packages on the runner:
|
|
# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md
|
|
- name: Build application for linux
|
|
run: |
|
|
# ninja-build
|
|
sudo apt install -y pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev --no-install-recommends
|
|
flutter build linux --release
|
|
cd flatpak/scripts
|
|
dart pub get
|
|
dart flatpak_packager.dart --meta ../flatpak_meta.json --addTodaysVersion ${{inputs.ref}}
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: builds-linux
|
|
path: |
|
|
flatpak/scripts/flatpak_generator_exports/wger-linux-x86_64.tar.gz
|
|
flatpak/scripts/flatpak_generator_exports/wger-linux-x86_64.sha256 |