2
0
Эх сурвалжийг харах

add android, iphoneos and mingw

ruki 5 жил өмнө
parent
commit
cc2b535e48

+ 29 - 0
.github/workflows/android.yml

@@ -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
+

+ 23 - 0
.github/workflows/iphoneos.yml

@@ -0,0 +1,23 @@
+name: iPhoneOS
+
+on:
+  pull_request:
+  push:
+
+jobs:
+  build:
+    strategy:
+      matrix:
+        os: [macOS-latest]
+
+    runs-on: ${{ matrix.os }}
+
+    steps:
+      - uses: actions/checkout@v1
+      - uses: xmake-io/github-action-setup-xmake@v1
+        with:
+          xmake-version: branch@dev
+
+      - name: tests
+        run: |
+          xmake l ./scripts/test.lua -D -p iphoneos

+ 27 - 0
.github/workflows/mingw.yml

@@ -0,0 +1,27 @@
+name: MingW
+
+on:
+  pull_request:
+  push:
+
+jobs:
+  build:
+    strategy:
+      matrix:
+        os: [macOS-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: |
+          brew install mingw-w64
+
+      - name: tests
+        run: |
+          xmake l ./scripts/test.lua -D -p mingw