[ci] Merge three configs into one.

This commit is contained in:
Egor Pugin 2020-03-13 19:37:22 +03:00
parent ef4f99a994
commit a6c8d4c692
3 changed files with 8 additions and 71 deletions

View File

@ -1,32 +0,0 @@
name: linux
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v1
- 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
chmod 755 sw
- name: build
run: ./sw -static -shared -config d,r build

View File

@ -1,34 +0,0 @@
name: macos
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest]
steps:
- uses: actions/checkout@v1
- 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 -static -shared -config d,r build

View File

@ -1,14 +1,13 @@
name: windows
name: sw
on: [push]
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
#os: [windows-latest, ubuntu-latest, macOS-latest]
os: [windows-latest, ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
@ -23,7 +22,6 @@ jobs:
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
@ -32,4 +30,9 @@ jobs:
shell: sh
- name: build
if: matrix.os == 'windows-latest'
run: ./sw -static -shared -platform x86,x64 -config d,r build
- name: build
if: matrix.os != 'windows-latest'
run: ./sw -static -shared -config d,r build