Browse Source

travis => github actions

hewei.it 4 years ago
parent
commit
d9d69a5eb1
2 changed files with 44 additions and 3 deletions
  1. 43 0
      .github/workflows/CI.yml
  2. 1 3
      .travis.yml

+ 43 - 0
.github/workflows/CI.yml

@@ -0,0 +1,43 @@
+name: CI
+
+on:
+  push:
+    paths-ignore:
+      - '**.md'
+
+  pull_request:
+    paths-ignore:
+      - '**.md'
+
+jobs:
+  build-linux:
+    name: build-linux
+    runs-on: ubuntu-latest
+    steps:
+      - name: build
+        uses: actions/checkout@v2
+        run: |
+          ./configure
+          make libhv examples unittest evpp
+
+  build-macos:
+    name: build-macos
+    runs-on: macos-latest
+    steps:
+      - name: build
+        uses: actions/checkout@v2
+        run: |
+          ./configure
+          make libhv examples unittest evpp
+
+  build-windows:
+    name: build-windows
+    runs-on: windows-2016
+    steps:
+      - name: build
+        uses: actions/checkout@v2
+        run: |
+          mkdir win64
+          cd win64
+          cmake .. -G "Visual Studio 15 2017 Win64"
+          cmake --build .

+ 1 - 3
.travis.yml

@@ -8,15 +8,13 @@ jobs:
       env: COVERALLS=no
       script:
         - ./configure
-        - make clean
         - make libhv examples unittest evpp
 
     - os: osx
       compiler: clang
       env: COVERALLS=no
-      scrit:
+      script:
         - ./configure
-        - make clean
         - make libhv examples unittest evpp
 
     - os: windows