Skip to content

attempt fix commit hash #82

attempt fix commit hash

attempt fix commit hash #82

Workflow file for this run

name: Build Latite from source
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: .
# Configuration type to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
BUILD_CONFIGURATION: Nightly
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Fetch Commit Hash
run: echo "COMMIT_HASH=${{ github.sha }}" >> $GITHUB_ENV
- name: Build Latite
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:COMMIT_HASH=${{env.COMMIT_HASH}} ${{env.SOLUTION_FILE_PATH}}
- name: Upload release DLL to artifacts
uses: actions/upload-artifact@v4
with:
name: Latite-Release
path: D:\a\Latite\Latite\x64\Release\LatiteRewrite.dll