Browse Source

add github ci

ruki 5 years ago
parent
commit
e0888b612a

+ 24 - 0
.github/workflows/linux.yml

@@ -0,0 +1,24 @@
+name: Linux
+
+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: tests
+        run: |
+          xmake l ./scripts/test.lua -D
+

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

@@ -0,0 +1,23 @@
+name: macOS
+
+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

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

@@ -0,0 +1,23 @@
+name: Windows
+
+on:
+  pull_request:
+  push:
+
+jobs:
+  build:
+    strategy:
+      matrix:
+        os: [windows-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

+ 1 - 1
packages/z/zlib/xmake.lua

@@ -8,7 +8,7 @@ package("zlib")
 
 
     add_versions("1.2.10", "8d7e9f698ce48787b6e1c67e6bff79e487303e66077e25cb9784ac8835978017")
     add_versions("1.2.10", "8d7e9f698ce48787b6e1c67e6bff79e487303e66077e25cb9784ac8835978017")
     add_versions("1.2.11", "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1")
     add_versions("1.2.11", "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1")
-
+ 
     on_install("windows", function (package)
     on_install("windows", function (package)
         io.gsub("win32/Makefile.msc", "%-MD", "-" .. package:config("vs_runtime"))
         io.gsub("win32/Makefile.msc", "%-MD", "-" .. package:config("vs_runtime"))
         os.vrun("nmake -f win32\\Makefile.msc zlib.lib")
         os.vrun("nmake -f win32\\Makefile.msc zlib.lib")