-
Notifications
You must be signed in to change notification settings - Fork 120
74 lines (63 loc) · 1.71 KB
/
build-release.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
62
63
64
65
66
67
68
69
70
71
72
73
74
name: build release artifacts
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-linux-macos:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest']
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: run build
run: |
git submodule update --init --recursive
mkdir build
cd build && cmake -DCMAKE_BUILD_TYPE=RELEASE ..
make
- name: run tests
run: ./build/test/test_suite
- name: create release artifacts/packages
run: |
cd build
make package
- name: upload artifacts
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v4
with:
name: release-packages
path: ./build/sqlcheck-x86_64.*
build-windows:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['windows-latest']
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Add msbuild to PATH
uses: microsoft/[email protected]
with:
msbuild-architecture: x64
- name: run build
run: |
git submodule update --init --recursive
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RELEASE ..
msbuild ALL_BUILD.vcxproj /t:Build /p:Configuration=Release
- name: run tests
run: ./build/test/Release/test_suite.exe
- name: upload artifacts
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v4
with:
name: release-packages
path: ./build/bin/Release/sqlcheck.*