Skip to content

Commit

Permalink
Fix Linux compatibility (#111)
Browse files Browse the repository at this point in the history
On some versions of Linux the app will not open since it was getting
built on the latest version of Ubuntu. The Linux build will now always
be built on Ubuntu 22.04.

Flutter has also been upgraded to 3.22.3 which fixes some visual issues
on Linux
  • Loading branch information
Gold872 authored Oct 15, 2024
1 parent ab98358 commit d719f43
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/elastic-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ on:
workflow_dispatch:

env:
FLUTTER_VERSION: 3.22.0
FLUTTER_VERSION: 3.22.3

jobs:
formatting-analysis:
name: "Check Formatting & Analyze"
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Checkout repo
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
run: flutter analyze --no-fatal-infos --no-fatal-warnings
test:
name: "Run Tests"
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Checkout repo
Expand Down Expand Up @@ -86,12 +86,10 @@ jobs:
build-option: "macos"
artifact-path: "build/macos/Build/Products/Release/Elastic-macOS.zip"
artifact-name: Elastic-macOS
executable-type: portable
- os: ubuntu-latest
- os: ubuntu-22.04
build-option: "linux"
artifact-path: "build/linux/x64/release/bundle"
artifact-name: Elastic-Linux
executable-type: portable

name: "Build - ${{ matrix.artifact-name }}"
needs: [formatting-analysis, test]
Expand All @@ -101,11 +99,11 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4

- name: Install flutter dependencies
- name: Install flutter build dependencies
if: ${{ matrix.build-option == 'linux' }}
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev
sudo apt-get install -y libglu1-mesa ninja-build libgtk-3-dev liblzma-dev
- name: Setup flutter
uses: subosito/flutter-action@v2
Expand Down Expand Up @@ -158,4 +156,4 @@ jobs:
with:
name: ${{ matrix.artifact-name }}_installer
path: "build/windows/x64/installer"
if-no-files-found: error
if-no-files-found: error

0 comments on commit d719f43

Please sign in to comment.