Skip to content

feat: release 3.19.x #9

feat: release 3.19.x

feat: release 3.19.x #9

Workflow file for this run

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-13, macos-13-arm64, windows-latest]
include:
- os: macos-13
output: darwin_x64
- os: macos-13-arm64
output: darwin_arm64
- 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 --branch ${{ github.event.label.name }} --single-branch https://github.com/dart-lang/sdk.git
ls
- name: Install Dependencies
run: |
dart pub get
mkdir build
- 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