Skip to content

Commit

Permalink
Add build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
s1204IT committed Aug 11, 2024
1 parent f567139 commit 89f7bb6
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 42 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build

on:
push:
paths:
- '*.c'
- '*.h'
- 'Android.mk'
- '.github/workflows/build.yml'
workflow_dispatch:
inputs:
abi:
type: string
description: ABI
default: armeabi-v7a
required: true
platform:
type: string
description: PLATFORM
default: "19"
required: true

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Compile
run: |
if [ ${{ github.event_name }} != "push" ]; then
$ANDROID_HOME/ndk/24.0.8215888/ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk APP_ABI=${{ inputs.abi }} APP_PLATFORM=android-${{ inputs.platform }}
else
$ANDROID_HOME/ndk/24.0.8215888/ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk APP_ABI=armeabi-v7a APP_PLATFORM=android-19
fi
- name: Uplaod
uses: actions/upload-artifact@v4
with:
name: CVE-2016-5195(dirtycow)
path: libs/${{ inputs.abi }}/*
25 changes: 0 additions & 25 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,28 +1,3 @@
# files for diffutils
*.orig
*.rej

# built application files
*.apk
*.ap_

# files for the dex VM
*.dex

# Java class files
*.class

# generated files
bin/
gen/
libs/
obj/

# Local configuration file (sdk path, etc)
local.properties
build.prop
build.prop.bak

# Eclipse project files
.classpath
.project
17 changes: 0 additions & 17 deletions test.sh

This file was deleted.

0 comments on commit 89f7bb6

Please # to comment.