This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 422
65 lines (52 loc) · 1.64 KB
/
windows.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
name: windows-build
on:
push:
branches: [ main, trunk, movement ]
paths-ignore:
- 'sql/**'
concurrency:
group: ${{ github.head_ref }} || concat(${{ github.ref }}, ${{ github.workflow }})
cancel-in-progress: true
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
REPO_DIR : ${{github.workspace}}
BUILD_DIR: ${{github.workspace}}/bin/builddir
jobs:
build:
runs-on: windows-latest
steps:
#git checkout
- uses: actions/checkout@v2
- uses: FranzDiebold/github-env-vars-action@v2
- name: Create Build Environment
run: |
echo "ARCHIVE_FILENAME=$env:CI_REPOSITORY_NAME-${{matrix.TYPE}}-$env:CI_SHA_SHORT.zip" >> $env:GITHUB_ENV
cmake -E make_directory ${{ env.BUILD_DIR }}
# install dependencies
- name: windows dependencies
#Sets versions for ACE
#env:
# ACE_VERSION: 6.5.11
# ACE_VERSION2: 6_5_11
run: |
#make
choco install -y make
#cmake
choco install -y cmake --pre
#openssl
choco install -y openssl --version=1.1.1.3
#git bash shell
shell: bash
#build and install
- name: windows build & install
run: |
cd $GITHUB_WORKSPACE
mkdir -p build && cd build
cmake .. -DTOOLS=ON-A x64
cmake --build . --config RelWithDebInfo --parallel 4
#git bash shell
shell: bash
- name: Create Upload File Name
run: |
echo "ARCHIVE_FILENAME=${{ github.event.repository.name }}-$(git rev-parse --short HEAD).zip" >> $env:GITHUB_ENV