add workflow
This commit is contained in:
parent
2dcd81a5c4
commit
94d40d2416
1 changed files with 33 additions and 0 deletions
33
.github/workflows/main.yml
vendored
Normal file
33
.github/workflows/main.yml
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
name: "Build Windows EXE"
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-windows:
|
||||
runs-on: "windows-latest"
|
||||
|
||||
steps:
|
||||
- name: "Checkout repository"
|
||||
uses: "actions/checkout@v4"
|
||||
|
||||
- name: "Set up Flutter"
|
||||
uses: "subosito/flutter-action@v2"
|
||||
|
||||
- name: "Set up Rust"
|
||||
uses: "dtolnay/rust-toolchain@stable"
|
||||
with:
|
||||
targets: "x86_64-pc-windows-msvc"
|
||||
|
||||
- name: "Install Flutter dependencies"
|
||||
run: "flutter pub get"
|
||||
|
||||
- name: "Build Windows EXE"
|
||||
run: |
|
||||
flutter build windows --release
|
||||
|
||||
- name: "Upload Windows build"
|
||||
uses: "actions/upload-artifact@v4"
|
||||
with:
|
||||
name: "windows-exe"
|
||||
path: "build/windows/x64/runner/Release/"
|
||||
Loading…
Add table
Add a link
Reference in a new issue