-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1344f9b
commit fb993d1
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: CI Windows | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- mgrr | ||
- gh-actions | ||
|
||
jobs: | ||
flutter-build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Download assets | ||
run: | | ||
$url = "https://github.com/ArthurHeitmann/F-SERVO/releases/download/assetsV0.7.0/assets.7z" | ||
$output = "${{ runner.temp }}\assets.7z" | ||
Invoke-WebRequest -Uri $url -OutFile $output | ||
- name: Extract assets | ||
shell: cmd | ||
run: 7z x ${{ runner.temp }}/assets.7z -o.\assets | ||
|
||
- name: Setup Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: '3.22.2' | ||
|
||
- name: Get Packages | ||
run: flutter pub get | ||
|
||
- name: Build Release | ||
run: flutter build windows --release | ||
|
||
- name: Archive Release | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: windows | ||
path: build/windows/x64/runner/Release |