diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml new file mode 100644 index 0000000..f12a680 --- /dev/null +++ b/.github/workflows/Build.yml @@ -0,0 +1,41 @@ +name: Build + +on: + push + +env: + SOLUTION_FILE_PATH: NativeCode\VisualStudio\AudioPluginSOFA.sln + BUILD_CONFIGURATION: Release + +jobs: + Win64: + runs-on: windows-2022 + + steps: + - uses: actions/checkout@v3 + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Restore NuGet packages + working-directory: ${{env.GITHUB_WORKSPACE}} + run: nuget restore ${{env.SOLUTION_FILE_PATH}} + + - name: Build + working-directory: ${{env.GITHUB_WORKSPACE}} + run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=x64 ${{env.SOLUTION_FILE_PATH}} + + - name: Upload a Build Artifact + uses: actions/upload-artifact@v3.1.1 + with: + name: SOFAlizer-for-Unity + path: "NativeCode/VisualStudio/build/Release/AudioPluginSOFA.dll" + + - name: GitHub pre-release + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{secrets.GITHUB_TOKEN}}" + automatic_release_tag: "latest" + prerelease: true + title: "SOFAlizer for Unity" + files: "NativeCode/VisualStudio/build/Release/AudioPluginSOFA.dll" diff --git a/NativeCode/VisualStudio/AudioPluginDemo.vcproj b/NativeCode/VisualStudio/AudioPluginDemo.vcproj index 9662ef5..1c3afc6 100644 --- a/NativeCode/VisualStudio/AudioPluginDemo.vcproj +++ b/NativeCode/VisualStudio/AudioPluginDemo.vcproj @@ -95,7 +95,7 @@ IntermediateDirectory="build/$(ConfigurationName)" ConfigurationType="2" CharacterSet="0" - WholeProgramOptimization="1" + WholeProgramOptimization="0" > DynamicLibrary NotSet - true + false v143 DynamicLibrary NotSet - true + false v143