Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Linux compatibility #111

Merged
merged 5 commits into from
Oct 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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