-
Notifications
You must be signed in to change notification settings - Fork 13
41 lines (41 loc) · 1.14 KB
/
build_sample_plugins.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: build_sample_plugins
on: [push]
jobs:
build:
strategy:
matrix:
runs-on: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.runs-on }}
steps:
- name: "Checkout repository"
uses: actions/checkout@v4
with:
submodules: true
- name : "Build plugins"
run: |
cd iolite_c_api/sample_plugins
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
- name : "Archive plugins"
uses: actions/upload-artifact@v4
with:
name: sample_plugins-${{ matrix.runs-on }}
path: |
iolite_c_api/sample_plugins/linux/*.so
iolite_c_api/sample_plugins/windows/*.dll
merge:
needs: build
runs-on: ubuntu-latest
steps:
- name: "Download artifacts"
uses: actions/download-artifact@v4
with:
path: sample_plugins
pattern: sample_plugins-*
merge-multiple: true
- name : "Archive plugins"
uses: actions/upload-artifact@v4
with:
name: sample_plugins
path: |
sample_plugins/**/*