led线路图添加反转站点 #73
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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Dart | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version: 3.24.2 | |
- run: flutter build windows | |
- name: Zip build files | |
run: | | |
Compress-Archive -Path ./build/windows/x64/runner/Release/* -DestinationPath GennokiokuToolbox-windows-${{ github.run_number }}.zip | |
shell: pwsh | |
- name: Upload Artifact | |
id: upload-artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
path: ./GennokiokuToolbox-windows-${{ github.run_number }}.zip | |
name: GennokiokuToolbox-windows | |
build-android: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version: 3.24.2 | |
- run: flutter pub get | |
- run: flutter build apk | |
- run: mv ./build/app/outputs/apk/release/app-release.apk ./GennokiokuToolbox-android-${{ github.run_number }}.apk | |
- name: Upload Artifact | |
id: upload-artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
path: ./GennokiokuToolbox-android-${{ github.run_number }}.apk | |
name: GennokiokuToolbox-android | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version: 3.24.2 | |
- run: | | |
sudo apt-get update -y | |
sudo apt-get install -y ninja-build libgtk-3-dev | |
- run: flutter build linux | |
- name: Zip build files | |
run: | | |
cd ./build/linux/x64/release/bundle/ | |
zip -r GennokiokuToolbox-linux-${{ github.run_number }}.zip ./* | |
mv GennokiokuToolbox-linux-${{ github.run_number }}.zip ../../../../../ | |
- name: Upload Artifact | |
id: upload-artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
path: ./GennokiokuToolbox-linux-${{ github.run_number }}.zip | |
name: GennokiokuToolbox-linux |