-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (38 loc) · 1.42 KB
/
build.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
name: CMake on a single platform
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
permissions:
contents: write
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
# UEVR UESDK submodule uses ssh, rewrite to https with access token
- name: Set github url and credentials
run: |
git config --global url."https://${{ secrets.REPO_ACCESS_TOKEN }}@github.com/.insteadOf" git@github.com:
- name: Configure CMake
run: cmake -S ${{github.workspace}} -B ${{github.workspace}}/build -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target pacific_drive_plugin
- name: Package
working-directory: ${{github.workspace}}
run: Invoke-Item package.cmd
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: PenDriverPro-Win64-Shipping
path: ${{github.workspace}}/build/Release/profile/*
if-no-files-found: error
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: PenDriverPro-Win64-Shipping.zip
body_path: ${{github.workspace}}/release-template.md