Fix Podspec name in files array #167
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: ci | |
on: | |
push: | |
branches: ['*'] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: ['16', '18', '20'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: 'yarn' | |
node-version: ${{ matrix.node }} | |
- run: yarn --frozen-lockfile | |
- run: yarn flow | |
build-android-oldarch: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: gradle/gradle-build-action@v2 | |
with: | |
gradle-version: 7.5.1 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: 'yarn' | |
- run: yarn --frozen-lockfile | |
- working-directory: android/ | |
run: gradle build | |
build-android-newarch: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: gradle/gradle-build-action@v2 | |
with: | |
gradle-version: 7.5.1 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: 'yarn' | |
- run: yarn --frozen-lockfile | |
- env: | |
_JAVA_OPTIONS: -Xmx4096m -XX:MaxMetaspaceSize=1024m | |
ORG_GRADLE_PROJECT_newArchEnabled: true | |
working-directory: android/ | |
run: gradle build | |
build-ios-oldarch: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: 'yarn' | |
- run: yarn --frozen-lockfile | |
- run: curl https://raw.githubusercontent.com/fbtmp/rn-native-module-support/bde08590abdf16efe2e4e68faacc3e1b7307b867/Podfile -o ios/Podfile | |
- working-directory: ios/ | |
run: pod install | |
- run: xcodebuild -workspace "ios/RNLinearGradient.xcworkspace" -scheme "RNLinearGradient" -destination "platform=iOS Simulator,name=iPhone 12" | |
build-ios-newarch: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: 'yarn' | |
- run: yarn --frozen-lockfile | |
- run: curl https://raw.githubusercontent.com/fbtmp/rn-native-module-support/bde08590abdf16efe2e4e68faacc3e1b7307b867/Podfile -o ios/Podfile | |
- working-directory: ios/ | |
run: RCT_NEW_ARCH_ENABLED=1 pod install | |
- run: xcodebuild -workspace "ios/RNLinearGradient.xcworkspace" -scheme "RNLinearGradient" -destination "platform=iOS Simulator,name=iPhone 12" | |
integration-rn63: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: 'yarn' | |
node-version: 16 | |
- run: echo "y" | ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager "ndk;21.4.7075529" | |
- run: yarn --frozen-lockfile | |
- run: npx react-native init rn63 --version 0.63.5 --skip-install | |
- working-directory: rn63/ | |
run: | | |
yarn | |
yarn add link:./.. | |
echo "ndk.dir=${ANDROID_SDK_ROOT}/ndk/21.4.7075529" > android/local.properties | |
./android/gradlew -p android build |