Skip to content

Merge branch 'master' of https://github.com/b4byhuey/Apktool #75

Merge branch 'master' of https://github.com/b4byhuey/Apktool

Merge branch 'master' of https://github.com/b4byhuey/Apktool #75

Workflow file for this run

name: Windows Build
on:
push:
branches:
- master
pull_request:
paths:
- '**.java'
- '**.kts'
- 'brut.apktool/apktool-lib/src/main/resources/**'
- 'brut.apktool/apktool-lib/src/test/**'
- '.github/workflows/**'
- 'gradle/wrapper/**'
- 'gradlew'
- 'gradlew.bat'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
BINARY_PATH: brut.apktool/apktool-lib/src/main/resources/prebuilt
jobs:
analyze-windows-aapt:
runs-on: windows-latest
strategy:
matrix:
file: [ aapt.exe, aapt_64.exe, aapt2.exe, aapt2_64.exe ]
steps:
- uses: actions/checkout@v4
- name: Verify Executable
run: ${{ env.BINARY_PATH }}/windows/${{ matrix.file }} version
- name: Output Static
run: ldd ${{ env.BINARY_PATH }}/windows/${{ matrix.file }} || true
build-apktool:
runs-on: ubuntu-latest
name: Build apktool.jar
if: github.repository == 'b4byhuey/Apktool' && github.ref == 'refs/heads/master'
needs:
- analyze-windows-aapt
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Build
uses: gradle/gradle-build-action@v2.11.0
with:
arguments: build shadowJar proguard
- name: Upload
uses: actions/upload-artifact@v3
with:
name: apktool.jar
path: brut.apktool/apktool-cli/build/libs/apktool-v*
deploy_nightly:
name: Deploy Nightly Build
runs-on: ubuntu-latest
needs: [build-apktool]
steps:
- uses: actions/checkout@v4
- name: Download Apktool
uses: actions/download-artifact@v3
with:
name: apktool.jar
path: win/
- name: Remove the old Release
uses: dev-drprasad/delete-older-releases@v0.3.2
with:
keep_latest: 0
delete_tag_pattern: "windows"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: ncipollo/release-action@v1.13.0
with:
artifacts: "win/*.*"
name: "Snapshots for Windows"
prerelease: true
replacesArtifacts: false
allowUpdates: false
tag: windows
token: ${{ secrets.GITHUB_TOKEN }}