Skip to content

Commit 6aac0ed

Browse files
authored
Added packaging for CI (#3)
Added packaging of executable into * .zip * .tar.gz
1 parent fcfd944 commit 6aac0ed

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ jobs:
2929
- name: Running the tests
3030
run: ./cstest -help
3131

32+
- name: Create package
33+
run: |
34+
tar cvzf cstest.tar.gz cstest
35+
36+
- name: Upload package
37+
uses: actions/[email protected]
38+
with:
39+
name: cstest-linux.tar.gz
40+
path: cstest.tar.gz
41+
3242
windows-build:
3343
name: Windows build
3444
runs-on: windows-latest
@@ -51,6 +61,16 @@ jobs:
5161
- name: Running the tests
5262
run: cstest.exe -help
5363

64+
- name: Create package
65+
run: |
66+
7z.exe a -tzip -r cstest.zip cstest.exe
67+
68+
- name: Upload package
69+
uses: actions/[email protected]
70+
with:
71+
name: cstest-windows.zip
72+
path: cstest.zip
73+
5474
macOS-build:
5575
name: MacOS build
5676
runs-on: macOS-latest
@@ -77,3 +97,13 @@ jobs:
7797

7898
- name: Running the tests
7999
run: ./cstest -help
100+
101+
- name: Create package
102+
run: |
103+
tar cvzf cstest.tar.gz cstest
104+
105+
- name: Upload package
106+
uses: actions/[email protected]
107+
with:
108+
name: cstest-macOS.tar.gz
109+
path: cstest.tar.gz

0 commit comments

Comments
 (0)