Skip to content

Commit a42131e

Browse files
authored
Create dev-release.yml
1 parent 22494a8 commit a42131e

1 file changed

Lines changed: 70 additions & 0 deletions

File tree

.github/workflows/dev-release.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Dev Release
2+
on: [push, workflow_dispatch]
3+
env:
4+
BUILD_TYPE: Release
5+
jobs:
6+
dev-release:
7+
runs-on: windows-latest
8+
strategy:
9+
matrix:
10+
target: [RE2, RE2_TDB66, RE3, RE3_TDB67, RE4, RE7, RE7_TDB49, RE8, DMC5, MHRISE, SF6, DD2]
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
14+
with:
15+
submodules: recursive
16+
fetch-depth: 0
17+
persist-credentials: false
18+
19+
- name: Configure CMake
20+
run: cmake -S ${{github.workspace}} -B ${{github.workspace}}/build -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DDEVELOPER_MODE=ON
21+
22+
- name: Build
23+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target ${{matrix.target}}
24+
25+
- name: Compress release
26+
run: |
27+
echo ${{github.sha}} > ${{github.workspace}}/reframework_revision.txt
28+
echo none > ${{github.workspace}}/DELETE_OPENVR_API_DLL_IF_YOU_WANT_TO_USE_OPENXR
29+
7z a ${{github.workspace}}/${{matrix.target}}.zip ${{github.workspace}}/reframework_revision.txt
30+
7z a ${{github.workspace}}/${{matrix.target}}.zip ${{github.workspace}}/DELETE_OPENVR_API_DLL_IF_YOU_WANT_TO_USE_OPENXR
31+
7z a ${{github.workspace}}/${{matrix.target}}.zip ${{github.workspace}}/build/bin/${{matrix.target}}/dinput8.dll
32+
7z a ${{github.workspace}}/${{matrix.target}}.zip ${{github.workspace}}/dependencies/openvr/bin/win64/openvr_api.dll
33+
7z a ${{github.workspace}}/${{matrix.target}}.zip ${{github.workspace}}/build/_deps/openxr-build/src/loader/${{env.BUILD_TYPE}}/openxr_loader.dll
34+
7z a ${{github.workspace}}/${{matrix.target}}.zip ${{github.workspace}}/scripts
35+
7z rn ${{github.workspace}}/${{matrix.target}}.zip scripts reframework/autorun
36+
37+
- name: Upload artifacts
38+
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
39+
with:
40+
name: ${{matrix.target}}
41+
path: ${{github.workspace}}/${{matrix.target}}.zip
42+
if-no-files-found: error
43+
44+
nightly-push:
45+
runs-on: windows-latest
46+
needs: dev-release
47+
if: github.ref == 'refs/heads/master'
48+
steps:
49+
- name: Checkout
50+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
51+
with:
52+
persist-credentials: false
53+
54+
- name: Download artifacts
55+
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427
56+
with:
57+
path: ${{github.workspace}}/artifacts
58+
59+
- name: Create Release
60+
uses: ncipollo/release-action@6c75be85e571768fa31b40abf38de58ba0397db5
61+
with:
62+
repo: REFramework
63+
owner: joeyhodge
64+
name: ${{format('REF Nightly {0} ({1})', github.run_number, github.sha)}}
65+
tag: ${{format('nightly-{0}-{1}', github.run_number, github.sha)}}
66+
artifacts: ${{github.workspace}}/artifacts/**/*.zip
67+
makeLatest: true
68+
bodyFile: ${{github.workspace}}/nightly-body.md
69+
allowUpdates: true
70+

0 commit comments

Comments
 (0)