@@ -33,25 +33,33 @@ jobs:
33
33
name : " Windows/2019/Static/X86/Release" ,
34
34
os : windows-2019,
35
35
config : Release,
36
- args : -G "Visual Studio 16 2019" -A Win32,
36
+ cmake_extra_args : -G "Visual Studio 16 2019" -A Win32,
37
+ sudocmd : " " ,
38
+ artifact_name : " Windows x86" ,
37
39
}
38
40
- {
39
41
name : " Windows/2019/Static/X64/Release" ,
40
42
os : windows-2019,
41
43
config : Release,
42
- args : -G "Visual Studio 16 2019" -A x64,
44
+ cmake_extra_args : -G "Visual Studio 16 2019" -A x64,
45
+ sudocmd : " " ,
46
+ artifact_name : " Windows x64" ,
43
47
}
44
48
- {
45
49
name : " Ubuntu/18.04/Static/X64/Release" ,
46
50
os : ubuntu-18.04,
47
51
config : Release,
48
- args : " -DCMAKE_C_COMPILER=/usr/bin/gcc-8 -DCMAKE_CXX_COMPILER=/usr/bin/g++-8" ,
52
+ cmake_extra_args : " -DCMAKE_C_COMPILER=/usr/bin/gcc-8 -DCMAKE_CXX_COMPILER=/usr/bin/g++-8" ,
53
+ sudocmd : " sudo" ,
54
+ artifact_name : " Linux" ,
49
55
}
50
56
- {
51
- name : " MacOSX/10.15/Shared /X64/Release" ,
57
+ name : " MacOSX/10.15/Static /X64/Release" ,
52
58
os : macos-10.15,
53
59
config : Release,
54
- args : " -DBUILD_SHARED_LIBS=ON" ,
60
+ cmake_extra_args : " " ,
61
+ sudocmd : " sudo" ,
62
+ artifact_name : " MacOSX" ,
55
63
}
56
64
steps :
57
65
- uses : actions/checkout@v2
@@ -60,22 +68,21 @@ jobs:
60
68
- name : Configure
61
69
working-directory : ./build
62
70
run : |
63
- cmake .. ${{ matrix.config.args }} -DCMAKE_BUILD_TYPE=${{ matrix.config.config }}
71
+ cmake .. ${{ matrix.config.cmake_extra_args }} -DCMAKE_BUILD_TYPE=${{ matrix.config.config }}
64
72
- name : Build
65
73
working-directory : ./build
66
74
run : cmake --build . -j 2 --config ${{ matrix.config.config }}
67
75
- name : Test
68
76
working-directory : ./build
69
- run : ctest -j 2
70
- contrib-readme-job :
71
- runs-on : ubuntu-latest
72
- name : Contributions
73
- steps :
74
- - name : Update Contribution List
75
-
76
- env :
77
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
77
+ run : ctest -j 2 -C Release
78
+ - name : Install
79
+ working-directory : ./build
80
+ run : ${{ matrix.config.sudocmd }} cmake --install .
81
+ - name : Create packages
82
+ working-directory : ./build
83
+ run : ${{ matrix.config.sudocmd }} cpack
84
+ - name : Archive Packages
85
+ uses : actions/upload-artifact@v2
78
86
with :
79
- imageSize : 100
80
- columnsPerRow : 6
81
-
87
+ name : Binary Package ${{ matrix.config.artifact_name }}
88
+ path : build/matplotplusplus-1.?.?-*.*
0 commit comments