Skip to content

Commit c1b84d4

Browse files
committed
Create workflow for code testing and artifact generation
1 parent 56ccff5 commit c1b84d4

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

.github/workflows/compilation.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: CI-compile
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build-windows:
9+
name: Windows compilation
10+
runs-on: windows-2019
11+
12+
steps:
13+
- name: Checkout Repository
14+
uses: actions/checkout@v2
15+
16+
- name: Setup msbuild
17+
uses: microsoft/[email protected]
18+
# with:
19+
# vs-version: "[15.0,16.0)"
20+
# msbuild-architecture: x64
21+
22+
- name: Build
23+
run: msbuild.exe cli\\maxcso.sln -m -p:Configuration=Release -p:PlatformToolset=v141_xp -p:Platform=x64 -p:TrackFileAccess=false
24+
25+
- uses: actions/upload-artifact@v2
26+
with:
27+
name: maxcso-windows-${{ matrix.platform }}
28+
path: maxcso.exe
29+
30+
build-macos:
31+
name: MacOS compilation
32+
runs-on: macos-latest
33+
34+
steps:
35+
- name: Checkout Repository
36+
uses: actions/checkout@v2
37+
38+
- run: brew install lz4 libuv libdeflate
39+
40+
- name: Build
41+
run: |
42+
make
43+
tar -zcvf kelftool-macos.tar.gz maxcso
44+
45+
- uses: actions/upload-artifact@v2
46+
with:
47+
name: kelftool-macos
48+
path: kelftool-macos.tar.gz
49+
50+
build-ubuntu:
51+
name: Ubuntu compilation
52+
runs-on: ubuntu-latest
53+
54+
steps:
55+
- name: Checkout Repository
56+
uses: actions/checkout@v2
57+
58+
- run: sudo apt-get install libuv1-dev liblz4-dev
59+
60+
- name: Build
61+
run: |
62+
make
63+
tar -zcvf maxcso-linux.tar.gz maxcso
64+
65+
- uses: actions/upload-artifact@v2
66+
with:
67+
name: maxcso-linux
68+
path: maxcso-linux.tar.gz

0 commit comments

Comments
 (0)