Skip to content

Commit 0fc35ae

Browse files
authored
Create sw.yml
1 parent 994bb80 commit 0fc35ae

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/sw.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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

0 commit comments

Comments
 (0)