-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.27 KB
/
DeployWindows.yml
File metadata and controls
42 lines (40 loc) · 1.27 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
name: Deploy Windows
on:
workflow_dispatch:
jobs:
deploy_windows:
runs-on: windows-latest
permissions: write-all
steps:
- name: Get repository code
uses: actions/checkout@v3
with:
submodules: true
- name: Clone gtest library
run: 'git clone https://github.com/google/googletest.git'
- name: Build project
run: |
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: '${{ github.run_number }}'
release_name: 'Release Windows ${{ 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/SampleCalc.exe'
asset_name: 'SampleCalc-${{ github.run_number }}-Windows.exe'
asset_content_type: application/vnd.debian.binary-package