File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : C/C++ CI with SW
2+
3+ on : [push]
4+
5+ jobs :
6+ build :
7+ runs-on : ${{ matrix.os }}
8+ strategy :
9+ matrix :
10+ os : [windows-latest]
11+ # os: [ubuntu-latest]
12+ # os: [windows-latest, ubuntu-latest, macOS-latest]
13+
14+ steps :
15+ - uses : actions/checkout@v1
16+ # - uses: egorpugin/sw-action@master
17+
18+ - name : Download SW
19+ shell : cmake -P {0}
20+ run : |
21+ if (WIN32)
22+ file(DOWNLOAD "https://software-network.org/client/sw-master-windows-client.zip" ./sw.zip)
23+ elseif (APPLE)
24+ file(DOWNLOAD "https://software-network.org/client/sw-master-macos-client.tar.gz" ./sw.zip)
25+ else()
26+ file(DOWNLOAD "https://software-network.org/client/sw-master-linux-client.tar.gz" ./sw.zip)
27+ endif()
28+
29+ - name : Unpack SW
30+ run : cmake -E tar xvf sw.zip
31+
32+ - name : chmod
33+ run : chmod 755 sw
34+ shell : sh
35+
36+ - name : SW Cache
37+ uses : actions/cache@v1
38+ with :
39+ path : ~/.sw
40+ key : ${{ runner.os }}-sw-storage
41+
42+ - name : build
43+ run : ./sw build
You can’t perform that action at this time.
0 commit comments