-
Notifications
You must be signed in to change notification settings - Fork 124
Expand file tree
/
Copy pathaction.yml
More file actions
81 lines (72 loc) · 2.57 KB
/
action.yml
File metadata and controls
81 lines (72 loc) · 2.57 KB
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
75
76
77
78
79
80
81
name: 'Build Configuration'
description: 'Build PopSift for a specific configuration (Release/Debug)'
inputs:
build-type:
description: 'Build type (Release or Debug)'
required: true
platform:
description: 'Platform (linux or windows)'
required: true
deps-install-dir:
description: 'Dependencies install directory (Linux only)'
required: false
default: '/opt/'
vcpkg-root:
description: 'vcpkg root directory (Windows only)'
required: false
workspace-dir:
description: 'Workspace directory (Windows only)'
required: false
runs:
using: 'composite'
steps:
# Linux steps
- name: Setup directories (Linux)
if: inputs.platform == 'linux'
shell: bash
run: |
source ./.github/scripts/build-linux.sh
BUILD_TYPE=${{ inputs.build-type }} setup_directories
- name: Configure CMake (Linux)
if: inputs.platform == 'linux'
shell: bash
run: |
source ./.github/scripts/build-linux.sh
configure_cmake "${{ inputs.build-type }}" "${{ inputs.deps-install-dir }}"
- name: Build and Install (Linux)
if: inputs.platform == 'linux'
shell: bash
run: |
source ./.github/scripts/build-linux.sh
build_and_install "${{ inputs.build-type }}"
- name: Build As Third Party (Linux)
if: inputs.platform == 'linux'
shell: bash
run: |
source ./.github/scripts/build-linux.sh
build_as_third_party "${{ inputs.build-type }}" "${{ inputs.deps-install-dir }}"
# Windows steps
- name: Setup directories (Windows)
if: inputs.platform == 'windows'
shell: powershell
run: |
. .\.github\scripts\build-windows.ps1
Setup-Directories -BuildType "${{ inputs.build-type }}"
- name: Configure CMake (Windows)
if: inputs.platform == 'windows'
shell: powershell
run: |
. .\.github\scripts\build-windows.ps1
Configure-CMake -BuildType "${{ inputs.build-type }}" -VcpkgRoot "${{ inputs.vcpkg-root }}" -WorkspaceDir "${{ inputs.workspace-dir }}"
- name: Build and Install (Windows)
if: inputs.platform == 'windows'
shell: powershell
run: |
. .\.github\scripts\build-windows.ps1
Build-AndInstall -BuildType "${{ inputs.build-type }}"
- name: Build As Third Party (Windows)
if: inputs.platform == 'windows'
shell: powershell
run: |
. .\.github\scripts\build-windows.ps1
Build-AsThirdParty -BuildType "${{ inputs.build-type }}" -VcpkgRoot "${{ inputs.vcpkg-root }}" -WorkspaceDir "${{ inputs.workspace-dir }}"