chore(deps): update actions/checkout action to v4 #170
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 | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
android: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Build APK | |
run: flutter build apk --no-android-gradle-daemon | |
working-directory: example | |
ios: | |
runs-on: macos-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
- name: Configure Flutter | |
run: flutter config --enable-macos-desktop | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Build | |
run: flutter build ios --no-codesign --simulator | |
working-directory: example | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- name: Install tools | |
run: sudo apt update && sudo apt install -y clang cmake curl libgtk-3-dev ninja-build unzip | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
- name: Configure Flutter | |
run: flutter config --enable-linux-desktop | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Build | |
run: flutter build linux | |
working-directory: example | |
macos: | |
runs-on: macos-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
- name: Configure Flutter | |
run: flutter config --enable-macos-desktop | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Build | |
run: flutter build macos | |
working-directory: example | |
web: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Build | |
run: flutter build web | |
working-directory: example | |
windows: | |
runs-on: windows-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Build | |
run: flutter build windows | |
working-directory: example |