Skip to content

chore: fixing the export of oca OverlayType and CaptureBaseAttributeT… #11

chore: fixing the export of oca OverlayType and CaptureBaseAttributeT…

chore: fixing the export of oca OverlayType and CaptureBaseAttributeT… #11

Workflow file for this run

name: Native Build & Test
env:
cacheId: '8' # increment to expire the cache
on:
pull_request:
branches: [main]
paths:
- 'packages/legacy/app/ios/**'
- 'packages/legacy/app/android/**'
- '**/package-lock.json'
types: [opened, synchronize, reopened, labeled]
push:
branches: [main]
jobs:
build-ios:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Setup NodeJS
uses: ./.github/actions/setup-node
- name: Configure ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Cache pod dependencies
id: pod-cache
uses: actions/cache@v3
with:
path: packages/legacy/app/ios/Pods
key: ${{ runner.os }}-pods-${{ env.cacheId }}-${{ hashFiles('**/Podfile.lock ') }}
restore-keys: |
${{ runner.os }}-pods-${{ env.cacheId }}-
# Watch for changes to the `App` and `iOS` paths, use
# git for cache keys.
- name: Generate cache key
run: |
echo $(git rev-parse HEAD:packages/legacy/core/App) > ./dd-cache-key.txt
echo $(git rev-parse HEAD:packages/legacy/app/ios) >> ./dd-cache-key.txt
- name: Cache derived data
uses: actions/cache@v3
with:
path: packages/legacy/app/ios/xbuild/Build
key: ${{ runner.os }}-dd-xcode-${{ env.cacheId }}-${{ hashFiles('**/dd-cache-key.txt') }}
restore-keys: |
${{ runner.os }}-dd-xcode-${{ env.cacheId }}-
- name: Install React Native Dependencies
run: |
yarn install --immutable && \
git status
- name: Install iOS dependencies
# if: steps.pod-cache.outputs.cache-hit != 'true' || steps.npm-cache.outputs.cache-hit != 'true'
working-directory: ./packages/legacy/app/ios
run: |
gem install cocoapods && \
pod install && \
git status && \
git diff Podfile.lock
- name: Run release build
# if: steps.pod-cache.outputs.cache-hit != 'true' || steps.npm-cache.outputs.cache-hit != 'true'
working-directory: ./packages/legacy/app/ios
run: |
xcodebuild \
-workspace AriesBifold.xcworkspace \
-scheme AriesBifold \
-configuration Release \
-derivedDataPath xbuild \
build \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGNING_REQUIRED=NO
# This is a 1G file that adds little to speeding up
# the build but does impact cache size.
- name: Cleanup large artifacts
working-directory: ./packages/legacy/app/ios
run: |
rm -rf build/Build/Products/Debug-iphoneos/AriesBifold.app
build-android:
runs-on: ubuntu-latest
strategy:
matrix:
compile-sdk: [31]
build-tools: [31.0.0]
sdk-tools: [4333796]
steps:
- uses: actions/checkout@v3
- name: Setup NodeJS
uses: ./.github/actions/setup-node
- name: setup ubuntu
run: |
sudo apt-get --quiet update --yes
sudo apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
cache: 'gradle'
- name: Setup Android SDK
working-directory: ./packages/legacy/app/android
run: |
set -x
sudo mkdir -p /root/.android
sudo touch /root/.android/repositories.cfg
export ANDROID_HOME=$PWD/android-sdk
mkdir -p $ANDROID_HOME/cmdline-tools
wget --quiet --output-document=commandlinetools-linux.zip https://dl.google.com/android/repository/commandlinetools-linux-9477386_latest.zip
unzip -d $ANDROID_HOME/cmdline-tools commandlinetools-linux.zip
mv $ANDROID_HOME/cmdline-tools/cmdline-tools $ANDROID_HOME/cmdline-tools/latest
find $ANDROID_HOME -name sdkmanager
export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin
echo y | sdkmanager "platforms;android-${{ matrix.compile-sdk }}" >/dev/null
echo y | sdkmanager "platform-tools" >/dev/null
echo y | sdkmanager "build-tools;${{ matrix.build-tools }}" >/dev/null
find $ANDROID_HOME -type f -executable -print
chmod +x ./gradlew
set +o pipefail
yes | sdkmanager --licenses
set -o pipefail
- name: Install React Native Dependencies
run: |
node -v && yarn -v && yarn install --immutable && \
git status
- name: Android Release Build
working-directory: ./packages/legacy/app/android
run: ./gradlew --no-daemon bundleRelease