Skip to content

Commit

Permalink
fix: implement GH actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski committed Aug 2, 2024
1 parent 901e3ca commit 28e738f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 783 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/test-all.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
name: Test All

# on:
# workflow_dispatch:
# pull_request:
# push:
# tags:
# - 'v*'
# # nightly build @ 2:15 AM UTC
# schedule:
# - cron: '15 2 * * *'
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- "*-stable"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true # cancel previous runs

jobs:
set_release_type:
if: github.repository == 'facebook/react-native'
runs-on: ubuntu-latest
outputs:
RELEASE_TYPE: ${{ steps.set_release_type.outputs.RELEASE_TYPE }}
Expand All @@ -37,6 +36,7 @@ jobs:
fi
prepare_hermes_workspace:
if: github.repository == 'facebook/react-native'
runs-on: ubuntu-latest
env:
HERMES_WS_DIR: /tmp/hermes
Expand All @@ -55,6 +55,7 @@ jobs:
hermes-version-file: ${{ env.HERMES_VERSION_FILE }}

build_hermesc_apple:
if: github.repository == 'facebook/react-native'
runs-on: macos-13
needs: prepare_hermes_workspace
env:
Expand All @@ -69,6 +70,7 @@ jobs:
react-native-version: ${{ needs.prepare_hermes_workspace.outputs.react-native-version }}

build_apple_slices_hermes:
if: github.repository == 'facebook/react-native'
runs-on: macos-14
needs: [build_hermesc_apple, prepare_hermes_workspace]
env:
Expand All @@ -95,6 +97,7 @@ jobs:
react-native-version: ${{ needs.prepare_hermes_workspace.outputs.react-native-version }}

build_hermes_macos:
if: github.repository == 'facebook/react-native'
runs-on: macos-13
needs: [build_apple_slices_hermes, prepare_hermes_workspace]
env:
Expand All @@ -116,6 +119,7 @@ jobs:
flavor: ${{ matrix.flavor }}

test_ios_rntester_ruby_3_2_0:
if: github.repository == 'facebook/react-native'
runs-on: macos-13
needs:
[build_apple_slices_hermes, prepare_hermes_workspace, build_hermes_macos]
Expand All @@ -133,6 +137,7 @@ jobs:
react-native-version: ${{ needs.prepare_hermes_workspace.outputs.react-native-version }}

test_ios_rntester_dynamic_frameworks:
if: github.repository == 'facebook/react-native'
runs-on: macos-13
needs:
[build_apple_slices_hermes, prepare_hermes_workspace, build_hermes_macos]
Expand All @@ -156,6 +161,7 @@ jobs:
react-native-version: ${{ needs.prepare_hermes_workspace.outputs.react-native-version }}

test_ios_rntester:
if: github.repository == 'facebook/react-native'
runs-on: macos-13
needs:
[build_apple_slices_hermes, prepare_hermes_workspace, build_hermes_macos]
Expand Down Expand Up @@ -344,6 +350,7 @@ jobs:
install-java: 'false'

build_hermesc_linux:
if: github.repository == 'facebook/react-native'
runs-on: ubuntu-latest
needs: prepare_hermes_workspace
env:
Expand All @@ -359,6 +366,7 @@ jobs:
react-native-version: ${{ needs.prepare_hermes_workspace.outputs.react-native-version }}

build_hermesc_windows:
if: github.repository == 'facebook/react-native'
runs-on: windows-2019
needs: prepare_hermes_workspace
env:
Expand All @@ -378,6 +386,7 @@ jobs:
react-native-version: ${{ needs.prepare_hermes_workspace.outputs.react-native-version }}

build_android:
if: github.repository == 'facebook/react-native'
runs-on: 8-core-ubuntu
needs: [set_release_type]
container:
Expand Down Expand Up @@ -516,6 +525,7 @@ jobs:
compression-level: 0

test_ios_helloworld_with_ruby_3_2_0:
if: github.repository == 'facebook/react-native'
runs-on: macos-13
needs: [prepare_hermes_workspace, build_hermes_macos] # prepare_hermes_workspace must be there because we need its reference to retrieve a couple of outputs
env:
Expand All @@ -534,6 +544,7 @@ jobs:
react-native-version: ${{ needs.prepare_hermes_workspace.outputs.react-native-version }}

test_ios_helloworld:
if: github.repository == 'facebook/react-native'
runs-on: macos-13
needs: [prepare_hermes_workspace, build_hermes_macos] # prepare_hermes_workspace must be there because we need its reference to retrieve a couple of outputs
strategy:
Expand Down
Loading

0 comments on commit 28e738f

Please sign in to comment.