summaryrefslogtreecommitdiff
path: root/.github/workflows/linux.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/linux.yml')
-rw-r--r--.github/workflows/linux.yml35
1 files changed, 35 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