test signing dex #75
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 Dex | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| ANDROID_SDK_ROOT: ${{ github.workspace }}/android-sdk | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'zulu' | |
| java-version: 21 | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@v4.3.1 | |
| with: | |
| validate-wrappers: true | |
| - name: Set up signing key | |
| run: | | |
| if [ -n "${{ secrets.KEY_STORE }}" ]; then | |
| echo keyStorePassword='${{ secrets.KEY_STORE_PASSWORD }}' >> signing.properties | |
| echo keyAlias='${{ secrets.KEY_ALIAS }}' >> signing.properties | |
| echo keyPassword='${{ secrets.KEY_PASSWORD }}' >> signing.properties | |
| echo keyStore='${{ github.workspace }}/key.jks' >> signing.properties | |
| echo ${{ secrets.KEY_STORE }} | base64 --decode > ${{ github.workspace }}/key.jks | |
| fi | |
| - name: Set up Android SDK | |
| uses: android-actions/setup-android@v3 | |
| - name: Accept Licenses | |
| run: yes | sdkmanager --licenses | |
| - name: Install Build Tools | |
| run: sdkmanager "build-tools;36.0.0" "platforms;android-36" | |
| - name: Build Dex | |
| run: chmod 755 ./gradlew && ./gradlew --no-daemon build-dex sign-dex | |
| - name: Upload classes.dex Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: wxu-plugin-dex | |
| path: plugin/build/wxu.dex |