summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgor Pugin <egor.pugin@gmail.com>2020-03-13 14:19:01 +0300
committerEgor Pugin <egor.pugin@gmail.com>2020-03-13 14:19:01 +0300
commit919ce7b596ebcbb3785e9d4eb0bbb8208b7ef6cb (patch)
tree8e0e9f7a5697999b6bb1a6fdc6d2b394efff8ee2
parent1f0d7c7e70ed349615996b31901840967e507f9f (diff)
[ci] Add github actions.
-rw-r--r--.github/workflows/linux.yml35
-rw-r--r--.github/workflows/mac.yml35
-rw-r--r--.github/workflows/windows.yml35
3 files changed, 105 insertions, 0 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
new file mode 100644
index 0000000..b0ef994
--- /dev/null
+++ b/.github/workflows/linux.yml
@@ -0,0 +1,35 @@
+name: linux
+
+on: [push]
+
+jobs:
+ build:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ubuntu-latest]
+
+ steps:
+ - uses: actions/checkout@v1
+ #- uses: egorpugin/sw-action@master
+
+ - name: Download SW
+ shell: cmake -P {0}
+ run: |
+ if (WIN32)
+ file(DOWNLOAD "https://software-network.org/client/sw-master-windows-client.zip" ./sw.zip)
+ elseif (APPLE)
+ file(DOWNLOAD "https://software-network.org/client/sw-master-macos-client.tar.gz" ./sw.zip)
+ else()
+ file(DOWNLOAD "https://software-network.org/client/sw-master-linux-client.tar.gz" ./sw.zip)
+ endif()
+
+ - name: Unpack SW
+ run: cmake -E tar xvf sw.zip
+
+ - name: chmod
+ run: chmod 755 sw
+ shell: sh
+
+ - name: build
+ run: ./sw build
diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml
new file mode 100644
index 0000000..4d75508
--- /dev/null
+++ b/.github/workflows/mac.yml
@@ -0,0 +1,35 @@
+name: mac
+
+on: [push]
+
+jobs:
+ build:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [macOS-latest]
+
+ steps:
+ - uses: actions/checkout@v1
+ #- uses: egorpugin/sw-action@master
+
+ - name: Download SW
+ shell: cmake -P {0}
+ run: |
+ if (WIN32)
+ file(DOWNLOAD "https://software-network.org/client/sw-master-windows-client.zip" ./sw.zip)
+ elseif (APPLE)
+ file(DOWNLOAD "https://software-network.org/client/sw-master-macos-client.tar.gz" ./sw.zip)
+ else()
+ file(DOWNLOAD "https://software-network.org/client/sw-master-linux-client.tar.gz" ./sw.zip)
+ endif()
+
+ - name: Unpack SW
+ run: cmake -E tar xvf sw.zip
+
+ - name: chmod
+ run: chmod 755 sw
+ shell: sh
+
+ - name: build
+ run: ./sw build
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
new file mode 100644
index 0000000..1f8c89f
--- /dev/null
+++ b/.github/workflows/windows.yml
@@ -0,0 +1,35 @@
+name: windows
+
+on: [push]
+
+jobs:
+ build:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [windows-latest]
+
+ steps:
+ - uses: actions/checkout@v1
+ #- uses: egorpugin/sw-action@master
+
+ - name: Download SW
+ shell: cmake -P {0}
+ run: |
+ if (WIN32)
+ file(DOWNLOAD "https://software-network.org/client/sw-master-windows-client.zip" ./sw.zip)
+ elseif (APPLE)
+ file(DOWNLOAD "https://software-network.org/client/sw-master-macos-client.tar.gz" ./sw.zip)
+ else()
+ file(DOWNLOAD "https://software-network.org/client/sw-master-linux-client.tar.gz" ./sw.zip)
+ endif()
+
+ - name: Unpack SW
+ run: cmake -E tar xvf sw.zip
+
+ - name: chmod
+ run: chmod 755 sw
+ shell: sh
+
+ - name: build
+ run: ./sw build