|
@@ -0,0 +1,29 @@
|
|
|
|
+name: Android
|
|
|
|
+
|
|
|
|
+on:
|
|
|
|
+ pull_request:
|
|
|
|
+ push:
|
|
|
|
+
|
|
|
|
+jobs:
|
|
|
|
+ build:
|
|
|
|
+ strategy:
|
|
|
|
+ matrix:
|
|
|
|
+ os: [ubuntu-latest]
|
|
|
|
+
|
|
|
|
+ runs-on: ${{ matrix.os }}
|
|
|
|
+
|
|
|
|
+ steps:
|
|
|
|
+ - uses: actions/checkout@v1
|
|
|
|
+ - uses: xmake-io/github-action-setup-xmake@v1
|
|
|
|
+ with:
|
|
|
|
+ xmake-version: branch@dev
|
|
|
|
+
|
|
|
|
+ - name: prepare
|
|
|
|
+ run: |
|
|
|
|
+ wget -q https://dl.google.com/android/repository/android-ndk-r21-linux-x86_64.zip
|
|
|
|
+ unzip -q -o ./android-ndk-r21-linux-x86_64.zip
|
|
|
|
+
|
|
|
|
+ - name: tests
|
|
|
|
+ run: |
|
|
|
|
+ xmake l ./scripts/test.lua -D -p android --ndk=`pwd`/android-ndk-r21
|
|
|
|
+
|