Skip to content

Commit aaed688

Browse files
committed
Build artifacts
1 parent 8a64759 commit aaed688

File tree

2 files changed

+51
-18
lines changed

2 files changed

+51
-18
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,33 @@ jobs:
3333
name: "Windows/2019/Static/X86/Release",
3434
os: windows-2019,
3535
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",
3739
}
3840
- {
3941
name: "Windows/2019/Static/X64/Release",
4042
os: windows-2019,
4143
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",
4347
}
4448
- {
4549
name: "Ubuntu/18.04/Static/X64/Release",
4650
os: ubuntu-18.04,
4751
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",
4955
}
5056
- {
51-
name: "MacOSX/10.15/Shared/X64/Release",
57+
name: "MacOSX/10.15/Static/X64/Release",
5258
os: macos-10.15,
5359
config: Release,
54-
args: "-DBUILD_SHARED_LIBS=ON",
60+
cmake_extra_args: "",
61+
sudocmd: "sudo",
62+
artifact_name: "MacOSX",
5563
}
5664
steps:
5765
- uses: actions/checkout@v2
@@ -60,22 +68,21 @@ jobs:
6068
- name: Configure
6169
working-directory: ./build
6270
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 }}
6472
- name: Build
6573
working-directory: ./build
6674
run: cmake --build . -j 2 --config ${{ matrix.config.config }}
6775
- name: Test
6876
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-
uses: akhilmhdh/[email protected]
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
7886
with:
79-
imageSize: 100
80-
columnsPerRow: 6
81-
87+
name: Binary Package ${{ matrix.config.artifact_name }}
88+
path: build/matplotplusplus-1.?.?-*.*

.github/workflows/contributors.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Contributions
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- '**.md'
7+
- '.github/**'
8+
- '!.github/workflows/build.yml'
9+
- 'documentation/**'
10+
- '.clang-format'
11+
- '.gitignore'
12+
- 'LICENSE'
13+
14+
jobs:
15+
contrib-readme-job:
16+
runs-on: ubuntu-latest
17+
name: Contributions
18+
steps:
19+
- name: Update Contribution List
20+
uses: akhilmhdh/[email protected]
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
with:
24+
imageSize: 100
25+
columnsPerRow: 6
26+

0 commit comments

Comments
 (0)