Fix ios methods #186
This file contains hidden or 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: Build CI | |
| # Trigger the workflow on push or pull request | |
| on: [push] | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Set Node.js 12.x | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: "12.x" | |
| - name: Fix Android build-tools issue | |
| run: | | |
| echo "Uninstalling build tools > 30" | |
| echo "As a temporary workaround to fix builds" | |
| SDKMANAGER=$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager | |
| echo y | $SDKMANAGER --uninstall "build-tools;31.0.0" | |
| - name: Build Plugin Source | |
| run: cd src && npm run build | |
| - name: Lint | |
| run: | | |
| cd src && npm run ci.tslint | |
| cd ../demo && npm run ci.tslint | |
| cd ../demo-angular && npm run ci.tslint | |
| cd ../demo-vue && npm run ci.tslint | |
| - name: Setup JDK 1.8 | |
| uses: actions/setup-java@v1 | |
| with: | |
| java-version: 1.8 | |
| - name: Install PIP | |
| run: | | |
| sudo pip install --upgrade pip | |
| sudo pip install six | |
| - name: Setup NativeScript CLI | |
| run: | | |
| echo no | npm i -g nativescript@^8.0.0 | |
| tns usage-reporting disable | |
| tns error-reporting disable | |
| - name: Build Android Demo App | |
| run: | | |
| cd demo | |
| tns build android --env.uglify | |
| - name: Build iOS Demo App | |
| run: | | |
| cd demo | |
| tns build ios --env.uglify | |
| - name: Build Android Angular Demo App | |
| run: | | |
| cd demo-angular | |
| tns build android --env.uglify | |
| - name: Build iOS Demo Angular App | |
| run: | | |
| cd demo-angular | |
| tns build ios --env.uglify | |
| - name: Build Android Vue Demo App | |
| run: | | |
| cd demo-vue | |
| tns build android --env.uglify | |
| - name: Build iOS Demo Vue App | |
| run: | | |
| cd demo-vue | |
| tns build ios --env.uglify | |