瀏覽代碼

add more monkey ci

ruki 4 年之前
父節點
當前提交
8b44c163b5
共有 3 個文件被更改,包括 53 次插入1 次删除
  1. 1 1
      .github/workflows/monkey_linux.yml
  2. 25 0
      .github/workflows/monkey_macos.yml
  3. 27 0
      .github/workflows/monkey_windows.yml

+ 1 - 1
.github/workflows/monkey.yml → .github/workflows/monkey_linux.yml

@@ -1,4 +1,4 @@
-name: Monkey
+name: Monkey (Linux)
 
 on:
   schedule: # execute every 24 hours

+ 25 - 0
.github/workflows/monkey_macos.yml

@@ -0,0 +1,25 @@
+name: Monkey (macOS)
+
+on:
+  pull_request:
+  push:
+
+jobs:
+  build:
+    strategy:
+      matrix:
+        os: [macOS-latest]
+        kind: [static, shared]
+
+    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/monkey.lua -D -k ${{ matrix.kind }}
+

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

@@ -0,0 +1,27 @@
+name: Monkey (Windows)
+
+on:
+  pull_request:
+  push:
+
+jobs:
+  build:
+    strategy:
+      matrix:
+        os: [windows-latest]
+        kind: [static, shared]
+        arch: [x64, x86]
+        vs_runtime: [MT, MD]
+
+    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/monkey.lua -D -a ${{ matrix.arch }} -k ${{ matrix.kind }} --vs_runtime=${{ matrix.vs_runtime }} --vs_sdkver=10.0.19041.0
+