Skip to content

Commit

Permalink
ci: add github actions build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
h0tak88r committed Feb 3, 2025
1 parent ce38032 commit eeb0928
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
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@v3
with:
name: apkx-build
path: apkx-*.zip

0 comments on commit eeb0928

Please sign in to comment.