feat: release 3.19.x #16
Workflow file for this run
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
name: Build With Tag | |
on: | |
pull_request: | |
branches: | |
- master | |
types: | |
- labeled | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
Release: | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest] | |
include: | |
- os: macos-latest | |
output: darwin_x64 | |
- os: windows-latest | |
output: windows_x64 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check Label (macos) | |
if: matrix.os != 'windows-latest' | |
run: | | |
if [[ ${{ github.event.label.name }} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | |
echo "Label is a version number" | |
else | |
echo "Label is not a version number" | |
exit 1 | |
fi | |
- name: Check Label (windows) | |
if: matrix.os == 'windows-latest' | |
run: | | |
$tag = "${{ github.event.label.name }}" | |
if ($tag -match '^\d+\.\d+\.\d+$') { | |
Write-Output "Label is a version number" | |
} else { | |
Write-Output "Label is not a version number" | |
exit 1 | |
} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GIOSDK_PAT }} | |
- uses: dart-lang/[email protected] | |
- name: Checkout Dart SDK | |
run: | | |
git clone --depth 1 --branch ${{ github.event.label.name }} https://github.com/dart-lang/sdk.git | |
cd sdk | |
git config core.filemode false | |
git reset --hard HEAD | |
git apply --ignore-space-change --ignore-whitespace "../dart_flutter.patch" | |
git status | |
- name: Install Dependencies | |
run: | | |
dart pub get | |
mkdir build | |
mkdir build/${{ matrix.output }} | |
- name: Generate Snapshot | |
if: matrix.os == 'macos-13-arm64' | |
working-directory: ./lib/flutter_frontend_server | |
run: | | |
dart --deterministic --snapshot=frontend_server.dart.snapshot frontend_server_starter.dart | |
cp frontend_server.dart.snapshot ../../build/frontend_server.dart.snapshot | |
- name: Generate AOT Snapshot | |
working-directory: ./lib/flutter_frontend_server | |
run: | | |
dart compile aot-snapshot frontend_server_starter.dart | |
cp frontend_server_starter.aot ../../build/${{ matrix.output }}/frontend_server_aot.dart.snapshot | |
- uses: actions/[email protected] | |
with: | |
name: snapshots | |
path: build |