Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

fix: roll back SDK dependency of the generator to v3.0.0 #616

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,23 @@ on:

env:
PUB_ENVIRONMENT: bot.github
# This is the Dart SDK version the code generator requires to run.
# Increase this with care as it limits who can use ffigen, regardless of what code the generator produces for them.
GENERATOR_MIN_SDK: 3.0.0

# This is the Dart SDK version we test against because some
# of the generated code may require the features provided in a newer SDK.
CODE_MIN_SDK: 3.2.0

jobs:
# Check code formatting and static analysis on a single OS (macos).
analyze:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
# TODO: Change to 3.2.0 stable once it's released.
sdk: [3.2.0-114.0.dev]
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
with:
sdk: ${{ matrix.sdk }}
sdk: ${{ env.GENERATOR_MIN_SDK }}
- id: install
name: Install dependencies
run: dart pub get && dart pub get --directory="example/shared_bindings"
Expand All @@ -45,7 +47,7 @@ jobs:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
with:
sdk: 3.2.0-114.0.dev
sdk: ${{ env.CODE_MIN_SDK }}
- name: Install dependencies
run: dart pub get
- name: Install libclang-14-dev
Expand All @@ -62,7 +64,7 @@ jobs:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
with:
sdk: 3.2.0-114.0.dev
sdk: ${{ env.CODE_MIN_SDK }}
- name: Install dependencies
run: dart pub get
- name: Build test dylib and bindings
Expand All @@ -84,7 +86,7 @@ jobs:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
with:
sdk: 3.2.0-114.0.dev
sdk: ${{ env.CODE_MIN_SDK }}
- name: Install dependencies
run: dart pub get
- name: Build test dylib and bindings
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ topics:
- codegen

environment:
sdk: ">=3.2.0-114.0.dev <4.0.0"
sdk: ">=3.0.0 <4.0.0"

dependencies:
ffi: ^2.0.1
Expand Down
Loading