diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9cc3824..22bcafe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,6 @@ jobs: build: name: Build and Test runs-on: windows-latest - if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 @@ -26,7 +25,7 @@ jobs: run: mvn -B versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/} - name: Build and Test id: buildAndTest - run: mvn -B clean test + run: mvn -B clean test -DdevCommandFileDir="${{ vars.MSVC_DEV_FILES_DIR }}" - name: Codesign DLL on release if: startsWith(github.ref, 'refs/tags/') uses: skymatic/code-sign-action@v3 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index e786bc1..645b5c9 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,6 +13,9 @@ defaults: run: shell: bash +env: + MSVC_DEV_FILES_DIR: ${{ vars.MSVC_DEV_FILES_DIR ||'C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\' }} + jobs: analyse: name: Analyse @@ -32,6 +35,6 @@ jobs: with: languages: java - name: Build - run: mvn -B compile + run: mvn -B compile -DdevCommandFileDir="${{ env.MSVC_DEV_FILES_DIR }}" - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 \ No newline at end of file diff --git a/.github/workflows/publish-central.yml b/.github/workflows/publish-central.yml index f445539..c8026ed 100644 --- a/.github/workflows/publish-central.yml +++ b/.github/workflows/publish-central.yml @@ -29,7 +29,7 @@ jobs: - name: Enforce project version ${{ github.event.inputs.tag }} run: mvn versions:set -B -DnewVersion="${{ github.event.inputs.tag }}" - name: Deploy - run: mvn deploy -B -DskipTests -Psign,deploy-central --no-transfer-progress + run: mvn deploy -B -DskipTests -Psign,deploy-central --no-transfer-progress -DdevCommandFileDir="${{ vars.MSVC_DEV_FILES_DIR }}" env: MAVEN_OPTS: > --add-opens=java.base/java.util=ALL-UNNAMED diff --git a/.github/workflows/publish-github.yml b/.github/workflows/publish-github.yml index 95fe4b8..9b46bd6 100644 --- a/.github/workflows/publish-github.yml +++ b/.github/workflows/publish-github.yml @@ -21,7 +21,7 @@ jobs: - name: Enforce project version ${{ github.event.release.tag_name }} run: mvn versions:set -B -DnewVersion="${{ github.event.release.tag_name }}" - name: Deploy - run: mvn deploy -B -DskipTests -Psign,deploy-github --no-transfer-progress + run: mvn deploy -B -DskipTests -Psign,deploy-github --no-transfer-progress -DdevCommandFileDir="${{ vars.MSVC_DEV_FILES_DIR }}" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }} diff --git a/.gitignore b/.gitignore index f74150f..9a3e2cc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ *.class *.jar *.dll +*.obj +*.lib +*.exp # Maven # target/ @@ -16,3 +19,73 @@ pom.xml.versionsBackup .idea/compiler.xml .idea/jarRepositories.xml *.iml + +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +# but not Directory.Build.rsp, as it configures directory-level build defaults +!Directory.Build.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.tlog +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# exclude compile outputs not used by projects +*.exp +*.lib \ No newline at end of file diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 7056c82..ae42c80 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -1,5 +1,10 @@ +