Skip to content

Commit

Permalink
workflows: Set up Flutter environment in a single step for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-design committed Oct 15, 2024
1 parent 116840a commit 4a76dfc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,12 @@ jobs:
- name: Set up Flutter environment for Windows
if: ${{ matrix.platform == 'windows' }}
run: |
choco install flutter
Set-ExecutionPolicy Bypass -Scope Process -Force;
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install flutter -y
echo "C:\\flutter\\bin" >> $GITHUB_ENV
flutter --version
- name: Show workflow information
run: |
Expand All @@ -94,6 +98,7 @@ jobs:
env:
PLATFORM: ${{ matrix.platform }}
ARCH: ${{ matrix.arch }}
PATH: C:\flutter\bin;${{ secrets.PATH }}

- name: Build Flutter packages for Linux/Android/macOS/iOS
run: |
Expand Down

0 comments on commit 4a76dfc

Please sign in to comment.