test: flight log test (wip) #347
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: | |
push: | |
pull_request: | |
workflow_dispatch: | |
env: | |
flutter_version: '3.10.6' | |
jobs: | |
test-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Flutter environment | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ env.flutter_version }} | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Building generated source code | |
run: dart run build_runner build | |
- name: Analyze code | |
run: flutter analyze . | |
- name: Run tests | |
run: flutter test --no-pub -r expanded | |
- name: Install system libraries | |
run: | | |
sudo apt-get update | |
sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev | |
- name: Configure Flutter for Linux | |
run: flutter config --enable-linux-desktop | |
- name: Build Linux application (debug) | |
run: flutter build linux --debug | |
- name: Archive debug build | |
if: github.ref_type == 'tag' | |
uses: actions/upload-artifact@v2 | |
with: | |
name: linux-bundle-debug | |
path: build/linux/x64/debug/bundle/ | |
- name: Build Linux application (release) | |
run: flutter build linux --release | |
- name: Archive release build | |
if: github.ref_type == 'tag' | |
uses: actions/upload-artifact@v2 | |
with: | |
name: linux-bundle-release | |
path: build/linux/x64/release/bundle/ |