Skip to content
This repository has been archived by the owner on Dec 22, 2024. It is now read-only.

Removed unused code and updated readme command for linting #14

Removed unused code and updated readme command for linting

Removed unused code and updated readme command for linting #14

name: Prerelease Compiler
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: RelWithDebInfo
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- name: Configure CMake
run: cmake -G "Ninja" -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- uses: actions/upload-artifact@v4
with:
name: prerelease
path: |
${{github.workspace}}/build/BF2VR.dll
${{github.workspace}}/build/Loader.exe
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: prerelease.zip
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}