CI(linux) moved build from cmake to ninja #6
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: Build Flutter App | |
on: | |
push: | |
branches: | |
- main # adjust this to match your main branch name | |
pull_request: | |
branches: | |
- main # adjust this to match your main branch name | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.19.3' # adjust this to match your Flutter version | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Install build tools | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y cmake make ninja-build # Install Ninja | |
- name: Build for Linux | |
run: flutter build linux | |
#- name: Build for Android | |
# run: flutter build apk | |
#- name: Build for web | |
# run: flutter build web | |
#- name: Build for Windows | |
# run: flutter build windows | |
#- name: Build for iOS | |
# run: flutter build ios | |
# Add additional steps if you want to build for other platforms such as macOS, etc. |