Skip to content

Commit

Permalink
[ci] Add github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin authored Jan 6, 2020
1 parent 9df8710 commit 9eff144
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/sw.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on: [push]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
#os: [windows-latest, ubuntu-latest, 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 -mt -mt -platform x86 x64 -config d,r build

0 comments on commit 9eff144

Please sign in to comment.