2020-01-24 16:45:44 +08:00
|
|
|
name: macos
|
2020-01-06 08:18:47 +08:00
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-01-24 16:45:44 +08:00
|
|
|
os: [macOS-latest]
|
2020-01-06 08:18:47 +08:00
|
|
|
|
|
|
|
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
|
2020-01-24 16:45:44 +08:00
|
|
|
run: ./sw -static -shared -config d,r build
|