-
Notifications
You must be signed in to change notification settings - Fork 43
61 lines (58 loc) · 1.59 KB
/
build.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: build
on: [push, pull_request]
jobs:
unix:
strategy:
matrix:
os: [ubuntu, macos]
name: ${{matrix.os}}
runs-on: ${{matrix.os}}-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: make
run: make -j2
- name: prepare upload
run: |
strip qgrep
mkdir upload
cp -R vim upload/
cp qgrep upload/vim/
cp README.md upload/
cp qgrep upload/
- uses: actions/upload-artifact@v1
with:
name: qgrep-${{matrix.os}}
path: upload
windows:
runs-on: windows-latest
strategy:
matrix:
arch: [Win32, x64]
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: msbuild exe
shell: cmd
run: |
set PATH=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin
msbuild qgrep.vcxproj /v:minimal /p:Configuration=Release /p:Platform=${{matrix.arch}}
- name: msbuild dll
shell: cmd
run: |
set PATH=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin
msbuild qgrep.vcxproj /v:minimal /p:Configuration=ReleaseDLL /p:Platform=${{matrix.arch}}
- name: prepare upload
shell: bash
run: |
mkdir upload
cp -R vim upload/
cp build/ReleaseDLL_${{matrix.arch}}/qgrep.dll upload/vim/
cp README.md upload/
cp build/Release_${{matrix.arch}}/qgrep.exe upload/
- uses: actions/upload-artifact@v1
with:
name: qgrep-windows-${{matrix.arch}}
path: upload