Skip to content

chore:1

chore:1 #131

Workflow file for this run

name: 构建
on:
push:
workflow_dispatch:
permissions:
contents: write
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
- name: Init flutter env
run: |
cd namepicker
flutter pub get
- name: Build windows app
run: |
cd namepicker
flutter build windows
- name: Upload windows artifact
uses: actions/upload-artifact@v4
with:
name: NamePicker-Windows-x64
path: |
namepicker\build\windows\x64\runner\Release
# 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
# - name: Init flutter env
# run: |
# cd namepicker
# flutter pub get
# - name: Build linux app
# run: |
# cd namepicker
# flutter build linux
# - name: Upload linux artifact
# uses: actions/upload-artifact@v4
# with:
# name: NamePicker-Linux-x64
# path: |
# namepicker\build\linux\x64\runner\Release