Skip to content

Commit 8a9b43a

Browse files
authored
Update main.yml
1 parent cf6c643 commit 8a9b43a

File tree

1 file changed

+3
-28
lines changed

1 file changed

+3
-28
lines changed

.github/workflows/main.yml

+3-28
Original file line numberDiff line numberDiff line change
@@ -15,43 +15,18 @@ on:
1515
jobs:
1616
build:
1717
runs-on: ubuntu-latest
18-
strategy:
19-
fail-fast: false
20-
matrix:
21-
include:
22-
- version: '0.75.x'
23-
folder: 'rn75'
2418

2519
steps:
2620
- uses: actions/checkout@v2
2721

2822
- run: printenv
2923

30-
- name: Get yarn cache directory path
31-
id: yarn-cache-dir-path
32-
run: echo "::set-output name=dir::$(yarn cache dir)"
33-
34-
- uses: actions/cache@v2
35-
id: yarn-cache
36-
with:
37-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
38-
key: ${{ runner.os }}-yarn-${{ matrix.version }}
39-
restore-keys: |
40-
${{ runner.os }}-yarn-
41-
42-
- name: Build Android apk (release & debug)
24+
- name: Build Android apk (release)
4325
env:
44-
RN_VERSION: ${{ matrix.version }}
45-
RN_FOLDER: ${{ matrix.folder }}
4626
ANDROID_NDK_HOME: /usr/local/lib/android/sdk/ndk/26.1.10909125
4727
run: |
48-
echo $RN_VERSION $RN_FOLDER $ANDROID_NDK_HOME
49-
[[ "$RN_VERSION" == "reanimated-2" ]] && git clone --depth=1 https://github.com/software-mansion-labs/reanimated-2-playground.git "$RN_FOLDER" || npx react-native init "$RN_FOLDER" --version "$RN_VERSION"
5028
npm ci --legacy-peer-deps
5129
npm run build
52-
rm -rf node_modules
53-
cd "$RN_FOLDER"
54-
yarn add file:..
55-
cd ./android
30+
cd example
31+
npm ci --legacy-peer-deps
5632
./gradlew assembleRelease
57-
./gradlew assembleDebug

0 commit comments

Comments
 (0)