Set up CI for bob / rn compatibility matrix and handle non-standard codegen output dirs #20
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: Compat | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
pull_request: | |
branches: ["main"] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
integration-tests-generation: | |
strategy: | |
matrix: | |
runner: | |
- macos-latest | |
- ubuntu-latest | |
bob-version: | |
- 0.42.2 | |
- 0.42.3 | |
- latest | |
rn-version: | |
- 0.76.0 | |
- latest | |
runs-on: ${{ matrix.runner }} | |
name: "bob ${{ matrix.bob-version }} / rn ${{ matrix.rn-version }} / ${{ matrix.runner == 'macos-latest' && 'ios' || 'android' }}" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install cargo-ndk | |
if: ${{ matrix.runner != 'macos-latest' }} | |
run: | | |
cargo install cargo-ndk | |
- name: Install JDK | |
if: ${{ matrix.runner != 'macos-latest' }} | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "zulu" | |
java-version: "17" | |
- name: Install Rust toolchains | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: ${{ matrix.runner == 'macos-latest' && 'aarch64-apple-ios-sim' || 'aarch64-linux-android' }} | |
- name: Generate & build turbo module | |
run: | | |
./scripts/test-turbo-modules.sh \ | |
--slug '@my-org/my-lib' \ | |
--ubrn-config integration/fixtures/compat/ubrn.config.yaml \ | |
--builder-bob-version ${{ matrix.bob-version }} \ | |
--rn-version ${{ matrix.rn-version }} \ | |
--packgage-json-mixin integration/fixtures/compat/package.json \ | |
--${{ matrix.runner == 'macos-latest' && 'ios' || 'android' }} \ | |
../turbo-module |