Skip to content

update workflow

update workflow #2

Workflow file for this run

name: Build and Test
on:
push:
branches: [main]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y android-sdk
wget https://github.com/skylot/jadx/releases/download/v1.4.3/jadx-1.4.3.zip
unzip jadx-1.4.3.zip
sudo mv jadx/bin/jadx /usr/local/bin/
sudo mv jadx/bin/jadx-gui /usr/local/bin/
- name: Build
run: |
go mod tidy
go build -v ./...
- name: Test
run: go test -v ./...
- name: Create Release Artifact
if: github.event_name == 'push'
run: |
mkdir dist
go build -o dist/apkx ./cmd/apkx/main.go
zip -r apkx-${{ github.sha }}.zip dist/*
- name: Upload Artifact
if: github.event_name == 'push'
uses: actions/upload-artifact@v4
with:
name: apkx-build
path: apkx-*.zip