-
Notifications
You must be signed in to change notification settings - Fork 8
59 lines (50 loc) · 1.61 KB
/
compat.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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
- 0.43.0
rn-version:
- 0.76.0
- 0.76.1
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