Skip to content

.NET: Object type unification/simplification/DRY principle #783

.NET: Object type unification/simplification/DRY principle

.NET: Object type unification/simplification/DRY principle #783

Workflow file for this run

name: Dev Release
on: [push, workflow_dispatch]
env:
BUILD_TYPE: Release
jobs:
csharp-release:
runs-on: windows-latest
strategy:
matrix:
target: [csharp-api]
steps:
- name: Set up Python
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
with:
python-version: "3.12"
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Configure CMake
run: cmake -S ${{github.workspace}}/csharp-api -B ${{github.workspace}}/csharp-api/build -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/csharp-api/build --config ${{env.BUILD_TYPE}} --target ALL_BUILD
- name: Compress release
run: |
pip install -r ${{github.workspace}}/csharp-api/requirements.txt
python ${{github.workspace}}/csharp-api/make_symlinks.py --gamedir="${{github.workspace}}/csharp-api" --bindir="${{github.workspace}}/csharp-api/build/bin" --just_copy=Tru
- name: Upload artifacts
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
with:
name: ${{matrix.target}}
path: ${{github.workspace}}/csharp-api/reframework/
if-no-files-found: error
dev-release:
runs-on: windows-latest
strategy:
matrix:
target: [RE2, RE2_TDB66, RE3, RE3_TDB67, RE4, RE7, RE7_TDB49, RE8, DMC5, MHRISE, SF6, DD2]
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
submodules: recursive
fetch-depth: 0
- 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}} -DDEVELOPER_MODE=ON
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target ${{matrix.target}}
- name: Upload artifacts
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
with:
name: ${{matrix.target}}
path: ${{github.workspace}}/build/bin/${{matrix.target}}/dinput8.dll
if-no-files-found: error
- name: Compress release
run: |
echo ${{github.sha}} > ${{github.workspace}}/reframework_revision.txt
echo none > ${{github.workspace}}/DELETE_OPENVR_API_DLL_IF_YOU_WANT_TO_USE_OPENXR
7z a ${{github.workspace}}/${{matrix.target}}.zip ${{github.workspace}}/reframework_revision.txt
7z a ${{github.workspace}}/${{matrix.target}}.zip ${{github.workspace}}/DELETE_OPENVR_API_DLL_IF_YOU_WANT_TO_USE_OPENXR
7z a ${{github.workspace}}/${{matrix.target}}.zip ${{github.workspace}}/build/bin/${{matrix.target}}/dinput8.dll
7z a ${{github.workspace}}/${{matrix.target}}.zip ${{github.workspace}}/dependencies/openvr/bin/win64/openvr_api.dll
7z a ${{github.workspace}}/${{matrix.target}}.zip ${{github.workspace}}/build/_deps/openxr-build/src/loader/${{env.BUILD_TYPE}}/openxr_loader.dll
7z a ${{github.workspace}}/${{matrix.target}}.zip ${{github.workspace}}/scripts
7z rn ${{github.workspace}}/${{matrix.target}}.zip scripts reframework/autorun
- name: Release
if: github.ref == 'refs/heads/master'
uses: softprops/[email protected]
with:
repository: praydog/REFramework-nightly
token: ${{secrets.REPO_TOKEN}}
name: ${{format('REF Nightly {0} ({1})', github.run_number, github.sha)}}
tag_name: latest
files: ${{github.workspace}}/${{matrix.target}}.zip