summaryrefslogtreecommitdiff
path: root/.github/workflows/linux.yml
blob: b0ef9948f68f09dfcdcf106ce873e9df3aaaa256 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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