Skip to content

led线路图主体功能完成 #68

led线路图主体功能完成

led线路图主体功能完成 #68

Workflow file for this run

# 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