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

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Sep 7, 2023
1 parent 7fe462a commit 70b4d1d
Showing 1 changed file with 11 additions and 9 deletions.
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

0 comments on commit 70b4d1d

Please sign in to comment.