chore:1 #131
This file contains hidden or 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: 构建 | |
| 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 |