Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganise the gradle build script #32

Closed
wants to merge 11 commits into from
4 changes: 2 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

build_job:
name: Build Pull Request
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v1
Expand All @@ -26,7 +26,7 @@ jobs:

- name: Compile Project
run: |
./gradlew generateHeaderFilesFromJavaWrapper build
./gradlew buildHeaders build

- name: create unit coverage
run: |
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
publish:

runs-on: ubuntu-18.04
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
Expand All @@ -30,14 +30,13 @@ jobs:

- name: Compile Project
run: |
./gradlew generateHeaderFilesFromJavaWrapper
./gradlew build
./gradlew buildHeaders build

- name: Release build
run: |
./gradlew assemble

- name: Genrate Source jar
- name: Generate Source jar
run: |
./gradlew androidSourcesJar

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ cd java-libkiwix


```bash
./gradlew generateHeaderFilesFromJavaWrapper
./gradlew buildHeaders
./gradlew build
```

Expand Down
6 changes: 3 additions & 3 deletions install_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ printf "${Green}Downloading libzim ${NC}\n"
printf "\n${Green}Done! ${NC}\n"

printf "${Green}Coping libzim header and so files ${NC}\n"
./gradlew checkCurrentLibzimDate checkCurrentLinuxLibzimDate copyLibzimHeaderFiles copyLibzimAndroidArm copyLibzimAndroidArm64 copyLibzimAndroidx86 copyLibzimAndroidx86_64 copyLibzimLinux_x86_64 renameLibzimSoFile
./gradlew renameLibzimFolders copyLibzimHeaderAndSoFiles renameLibzimSoFile
printf "\n${Green}Down! ${NC}\n"

printf "${Green}Downloading libkiwix ${NC}\n"
./gradlew downloadLibkiwixSoAndHeaderFiles unzipLibkiwix
printf "\n${Green}Done! ${NC}\n"

printf "${Green}Coping libkiwix header and so files ${NC}\n"
./gradlew checkCurrentLibkiwixDate checkCurrentLinuxLibkiwixDate copyLibkiwixHeaderFiles copyLibkiwixAndroidArm copyLibkiwixAndroidArm64 copyLibkiwixAndroidx86 copyLibkiwixAndroidx86_64 copyLibkiwixLinux_x86_64 renameLibkiwixSoFile
printf "\n${Green}Done! ${NC}\n"
./gradlew renameLibkiwixFolders copyLibkiwixHeaderAndSoFiles renameLibkiwixSoFile
printf "\n${Green}Done! ${NC}\n"
Loading