Skip to content

Post-Release

Post-Release #42973

Workflow file for this run

# NOTE: Please keep in sync with `ci.yaml`
#
# Ensure doc's steps can work correctly, where users use the released versions
# instead of the code in master branch
name: Post-Release
on:
workflow_dispatch: { }
schedule:
- cron: "0,30 * * * *"
env:
CARGO_TERM_COLOR: always
FRB_MAIN_RUST_VERSION: 1.74.0
FRB_MAIN_DART_VERSION: 3.4.0
FRB_MAIN_FLUTTER_VERSION: 3.22.0
jobs:
test_mimic_quickstart:
name: 'Test :: MimicQuickstart'
runs-on: ${{ matrix.image }}
strategy:
fail-fast: false
matrix:
image:
- windows-2019
# need macos-"13" because https://github.com/fzyzcjy/flutter_rust_bridge/issues/1225
- macos-13
- ubuntu-latest
codegen_install_mode:
- cargo-install
- cargo-binstall
# - scoop # TODO enable after 2.0.0 stable release
# - homebrew # TODO enable after 2.0.0 stable release
exclude:
- { image: windows-2019, codegen_install_mode: homebrew }
- { image: macos-11, codegen_install_mode: scoop }
- { image: ubuntu-20.04, codegen_install_mode: homebrew }
- { image: ubuntu-20.04, codegen_install_mode: scoop }
steps:
# setup
- uses: catchpoint/workflow-telemetry-action@v1
with:
comment_on_pr: false
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.FRB_MAIN_RUST_VERSION }}
components: rustfmt
- uses: subosito/flutter-action@v2
with:
cache: true
flutter-version: ${{ env.FRB_MAIN_FLUTTER_VERSION }}
architecture: x64
- if: matrix.codegen_install_mode == 'cargo-binstall'
uses: cargo-bins/cargo-binstall@main
- if: runner.os == 'Windows' && matrix.codegen_install_mode == 'scoop'
uses: MinoruSekine/setup-scoop@main
# https://docs.flutter.dev/get-started/install/linux#linux-prerequisites
- if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install clang cmake git ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
- if: runner.os == 'Linux'
uses: pyvista/setup-headless-display-action@v1
# execute
- run: ./frb_internal post-release-mimic-quickstart --codegen-install-mode ${{ matrix.codegen_install_mode }}