Skip to content

Commit

Permalink
fix more
Browse files Browse the repository at this point in the history
  • Loading branch information
tjzel committed May 8, 2024
1 parent 70c56cd commit bf0177c
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 39 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build-monorepo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
name: Test monorepo build
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
pull_request:
paths:
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/build-v8-nightly.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: Test V8 on Android nightly
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
pull_request:
paths:
- .github/workflows/build-v8-nightly.yml
- .github/workflows/helper/configureV8.js
schedule:
- cron: '37 19 * * *'
- cron: "37 19 * * *"
workflow_dispatch:

jobs:
Expand All @@ -21,12 +19,12 @@ jobs:
- name: Check out
uses: actions/checkout@v4
with:
path: 'reanimated_repo'
path: "reanimated_repo"
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
distribution: "zulu"
java-version: "17"
- name: Create React Native app
run: npx react-native init app
- name: Install dependencies
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/check-react-native-nightly.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: Check React Native nightly build
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
pull_request:
paths:
- .github/workflows/check-react-native-nightly.yml
schedule:
- cron: '37 19 * * *'
- cron: "37 19 * * *"
workflow_dispatch:

jobs:
Expand All @@ -15,7 +13,7 @@ jobs:
runs-on: macos-14
strategy:
matrix:
react-native-architecture: ['Paper', 'Fabric']
react-native-architecture: ["Paper", "Fabric"]
fail-fast: false
concurrency:
group: ios-react-native-nightly-${{ matrix.react-native-architecture }}-${{ github.ref }}
Expand Down Expand Up @@ -43,7 +41,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
react-native-architecture: ['Paper', 'Fabric']
react-native-architecture: ["Paper", "Fabric"]
fail-fast: false
concurrency:
group: android-react-native-nightly-${{ matrix.react-native-architecture }}-${{ github.ref }}
Expand All @@ -52,8 +50,8 @@ jobs:
- name: Set up JDK 18
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '18'
distribution: "zulu"
java-version: "18"
- name: Create app
run: npx react-native init app --skip-install --version nightly
- name: Install Reanimated
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/check-static-framework-nightly.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
name: Check static framework nightly build
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
pull_request:
paths:
Expand Down
51 changes: 29 additions & 22 deletions .github/workflows/ios-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ on:
pull_request:
paths:
- .github/workflows/ios-build.yml
- RNReanimated.podspec
- scripts/reanimated_utils.rb
- apple/**
- Common/**
- Example/package.json
- Example/ios/**
- FabricExample/package.json
- FabricExample/ios/**
- packages/react-native-reanimated/RNReanimated.podspec
- packages/react-native-reanimated/scripts/reanimated_utils.rb
- packages/react-native-reanimated/apple/**
- packages/react-native-reanimated/Common/**
- packages/react-native-reanimated/Example/package.json
- packages/react-native-reanimated/Example/ios/**
- packages/react-native-reanimated/FabricExample/package.json
- packages/react-native-reanimated/FabricExample/ios/**
merge_group:
branches:
- main
Expand All @@ -21,22 +21,26 @@ on:
- main
paths:
- .github/workflows/ios-build.yml
- RNReanimated.podspec
- scripts/reanimated_utils.rb
- apple/**
- Common/**
- Example/package.json
- Example/ios/**
- FabricExample/package.json
- FabricExample/ios/**
- packages/react-native-reanimated/RNReanimated.podspec
- packages/react-native-reanimated/scripts/reanimated_utils.rb
- packages/react-native-reanimated/apple/**
- packages/react-native-reanimated/Common/**
- packages/react-native-reanimated/Example/package.json
- packages/react-native-reanimated/Example/ios/**
- packages/react-native-reanimated/FabricExample/package.json
- packages/react-native-reanimated/FabricExample/ios/**

jobs:
build:
if: github.repository == 'software-mansion/react-native-reanimated'
runs-on: macos-14
strategy:
matrix:
working-directory: [Example, FabricExample]
working-directory:
[
packages/react-native-reanimated/Example,
packages/react-native-reanimated/FabricExample,
]
fail-fast: false
concurrency:
group: ios-${{ matrix.working-directory }}-${{ github.ref }}
Expand All @@ -45,15 +49,18 @@ jobs:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Install monorepo node dependencies
run: yarn install
- name: Restore Reanimated node_modules from cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-modules-reanimated-${{ hashFiles('yarn.lock') }}
path: packages/react-native-reanimated/node_modules
key: ${{ runner.os }}-node-modules-reanimated-${{ hashFiles('packages/react-native-reanimated/yarn.lock') }}
restore-keys: ${{ runner.os }}-node-modules-reanimated-

- name: Install Reanimated node_modules
run: yarn install --immutable
- name: Install Reanimated node dependencies
working-directory: packages/react-native-reanimated
run: yarn install

- name: Restore app node_modules from cache
uses: actions/cache@v3
Expand All @@ -64,7 +71,7 @@ jobs:

- name: Install app node_modules
working-directory: ${{ matrix.working-directory }}
run: yarn install --immutable
run: yarn install

- name: Restore Pods from cache
uses: actions/cache@v3
Expand Down

0 comments on commit bf0177c

Please sign in to comment.