-
Notifications
You must be signed in to change notification settings - Fork 6
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
f355c7d
commit 61ac921
Showing
4 changed files
with
52 additions
and
8 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,29 @@ | ||
name: Load JSON | ||
description: Loads JSON data from a file. | ||
|
||
inputs: | ||
path: | ||
required: true | ||
description: "Path to the JSON file" | ||
|
||
outputs: | ||
data: | ||
description: "Loaded data. Can be accessed like a Github matrix." | ||
value: ${{ fromJson(steps.load.outputs.data) }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Load JSON | ||
id: load | ||
shell: bash | ||
run : | | ||
# Load JSON from ${{ inputs.path }} | ||
set -eu | ||
data=$(cat '${{ inputs.path }}') | ||
# Remove endlines | ||
data="${data//[$'\r\n']}" | ||
# Store result (must be in a single line) | ||
echo "versions='$data'" >> $GITHUB_OUTPUT |
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 |
---|---|---|
|
@@ -12,7 +12,6 @@ on: | |
env: | ||
az_name: wsl-ci-3 | ||
az_resource_group: wsl | ||
flutter-version: 3.13.x | ||
|
||
jobs: | ||
build-wsl-pro-service: | ||
|
@@ -43,10 +42,15 @@ jobs: | |
- uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: go.work | ||
- name: Load flutter version | ||
id: load | ||
uses: ./.github/actions/load-json | ||
with: | ||
path: tools/versions.json | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: stable | ||
flutter-version: ${{ env.flutter-version }} | ||
flutter-version: ${{ steps.load.outputs.data.flutter-version }} | ||
- name: Setup MSBuild (PATH) | ||
uses: microsoft/[email protected] | ||
- name: Install certificate | ||
|
@@ -170,7 +174,7 @@ jobs: | |
# Uninstall Appx | ||
Get-AppxPackage -Name "CanonicalGroupLimited.UbuntuProForWindows" | Remove-AppxPackage -ErrorAction Ignore | ||
# Uninstall certificate | ||
$thumbprint = (Get-PfxCertificate -FilePath "ci-artifacts\windows-agent\UbuntuProForWindows_*.cer").Thumbprint | ||
Remove-Item -Path "Cert:LocalMachine\TrustedPeople\${thumbprint}" | ||
|
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
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,4 @@ | ||
{ | ||
"doc": "This doument is used by the CI to track versions that cannot be tracked by Go.", | ||
"flutter-version": "3.13.x" | ||
} |