forked from OGSR/OGSR-Engine
-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (67 loc) · 2.75 KB
/
Copy pathpush.yml
File metadata and controls
77 lines (67 loc) · 2.75 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
name: Main Workflow
on:
push:
pull_request:
release:
types:
- created
jobs:
build:
if: "contains(github.event.head_commit.message, '[ci build]') || github.event_name == 'release'"
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
# Configuration: [Debug, Release, ReleaseTracyProfiler]
Configuration: [Release, ReleaseTracyProfiler]
Platform: [x64]
include:
# - Configuration: Debug
# ConfigurationReal: Debug
- Configuration: Release
ConfigurationReal: Release
- Configuration: ReleaseTracyProfiler
ConfigurationReal: Release
steps:
- uses: actions/checkout@v7.0.1
with:
fetch-depth: 0
- name: Update Components
run: |
${{ github.workspace }}/Update_Components.cmd
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v3
- name: MSBuild
shell: cmd
run: |
set APPVEYOR_BUILD_VERSION=3.${{ github.run_number }}
set APPVEYOR_REPO_NAME=${{ github.repository }}
set CONFIGURATION_GA=${{ matrix.Configuration }}
msbuild Engine.sln /t:Rebuild /p:Configuration=${{ matrix.ConfigurationReal }} /p:Platform=${{ matrix.Platform }}
- name: Prepare artifacts
shell: cmd
run: |
set APPVEYOR_BUILD_VERSION=3.${{ github.run_number }}
set CONFIGURATION=${{ matrix.Configuration }}
set PLATFORM=${{ matrix.Platform }}
set OGSR_ARTIFACT_NAME=OGSR_Engine_SHOC_EDITION_%PLATFORM%_%APPVEYOR_BUILD_VERSION%_%CONFIGURATION%.7z
cd bin_%PLATFORM%
md ..\Game\Resources_SoC_1.0006\bin_%PLATFORM%
copy *.* ..\Game\Resources_SoC_1.0006\bin_%PLATFORM%
cd ..\Game\Resources_SoC_1.0006
7z a -t7z -m0=LZMA2:d=96m:fb=273 -mx=9 -mmt=2 ..\..\%OGSR_ARTIFACT_NAME% .\
- name: Upload OGSR artifact
uses: actions/upload-artifact@v7.0.1
with:
name: OGSR_Engine_SHOC_EDITION_${{ matrix.Platform }}_3.${{ github.run_number }}_${{ matrix.Configuration }}.7z
path: .\OGSR_Engine_SHOC_EDITION_${{ matrix.Platform }}_3.${{ github.run_number }}_${{ matrix.Configuration }}.7z
- name: Upload release asset
if: github.event_name == 'release'
uses: shogo82148/actions-upload-release-asset@v1.10.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: .\OGSR_Engine_SHOC_EDITION_${{ matrix.Platform }}_3.${{ github.run_number }}_${{ matrix.Configuration }}.7z
asset_name: OGSR_Engine_SHOC_EDITION_${{ matrix.Platform }}_3.${{ github.run_number }}_${{ matrix.Configuration }}.7z
asset_content_type: application/x-7z-compressed