Update build.yml

This commit is contained in:
baiorett 2022-06-17 02:40:38 +03:00 committed by GitHub
parent 2f8cf065b3
commit a6796b8580
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,14 +19,16 @@ jobs:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Clone this repository
uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Clone build-tools
uses: actions/checkout@v3
with:
repository: 'RohitVerma882/build-tools'
path: 'build-tools'
- name: Set up JDK 1.8
- name: Set up Azul Zulu OpenJDK 1.8
uses: actions/setup-java@v3
with:
distribution: 'zulu'
@ -37,13 +39,20 @@ jobs:
- name: Setup Android NDK
run: sdkmanager "ndk;${{ env.NDK_VERSION }}"
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get upgrade git -y
sudo apt-get install build-essential unzip nasm cmake ninja-build -y || exit 1
- name: Build aapt2
env:
NDK_TOOLCHAIN: "${{ env.ANDROID_HOME }}/ndk/${{ env.NDK_VERSION }}/toolchains/llvm/prebuilt/linux-x86_64"
run: ./build.sh
- uses: actions/upload-artifact@v3
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: dist
path: build-tools/dist/