diff options
author | Egor Pugin <egor.pugin@gmail.com> | 2020-03-13 16:33:15 +0300 |
---|---|---|
committer | Egor Pugin <egor.pugin@gmail.com> | 2020-03-13 16:33:15 +0300 |
commit | 986c181d68447ac2463b6945e4ed68fe39f800e5 (patch) | |
tree | 27d571bd35ae74f16d13477d32f3bfc4fecdba66 /.github/workflows/sw.yml | |
parent | 8dbd344c9bea5eb8f74adbaf51ec666aa9b1c420 (diff) |
[ci] Merge github actions into single file.
Diffstat (limited to '.github/workflows/sw.yml')
-rw-r--r-- | .github/workflows/sw.yml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/sw.yml b/.github/workflows/sw.yml new file mode 100644 index 0000000..a58f77c --- /dev/null +++ b/.github/workflows/sw.yml @@ -0,0 +1,39 @@ +name: sw + +on: [push, pull-request] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [windows-latest, ubuntu-latest, 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 + + - name: test + run: ./sw test |