Merge pull request #8 from 1runeberg/patch-v0.6.1 #31
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: Linux | |
on: | |
workflow_call: | |
inputs: | |
release_tag: | |
required: true | |
type: string | |
release_name: | |
required: true | |
type: string | |
push: | |
branches: | |
- '**' | |
paths-ignore: | |
- '**/*.md' | |
- '**.md' | |
- '.github/**' | |
- 'docs/**' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
linux-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
- name: Set up Java | |
uses: actions/setup-java@v4.2.2 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2.16.0 | |
with: | |
channel: 'stable' | |
- name: Install dependencies | |
run: cd confichat && flutter pub get | |
- name: Update third party licenses Linux | |
run: cd confichat && flutter pub run flutter_oss_licenses:generate.dart | |
- name: Build Linux App | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y ninja-build libgtk-3-dev | |
cd confichat | |
flutter config --enable-linux-desktop | |
flutter build linux --release |