-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.6 KB
/
DeployWindows.yml
File metadata and controls
48 lines (46 loc) · 1.6 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
name: Deploy Windows Exe
on:
workflow_dispatch:
jobs:
deploy_windows_exe:
runs-on: windows-latest
permissions: write-all
steps:
- name: Get repository code
uses: actions/checkout@v3
with:
submodules: true
- name: Download vcpkg
run: 'git clone https://github.com/Microsoft/vcpkg.git'
- name: Install vcpkg
run: '.\vcpkg\bootstrap-vcpkg.bat -disableMetrics'
- name: Install libs
run: '.\vcpkg\vcpkg install gtest boost-asio boost-system'
- name: Integrate vcpkg
run: '.\vcpkg\vcpkg integrate install'
- name: Build project
run: |
cmake . -DCMAKE_TOOLCHAIN_FILE=D:/a/OuterJoin/OuterJoin/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build . --config Release
- name: Test project
run: ctest
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
with:
tag_name: 'exe-${{ github.run_number }}'
release_name: 'Release Windows Exe ${{ github.run_number }}'
draft: false
prerelease: false
- name: Upload Release Asset Windows
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
with:
upload_url: '${{ steps.create_release.outputs.upload_url }}'
asset_path: './Release/OuterJoin.exe'
asset_name: 'OuterJoin-${{ github.run_number }}-Windows.exe'
asset_content_type: application/octet-stream