Skip to content

Bump src/external/tinyxml2 from c2d3087 to 321ea88 #360

Bump src/external/tinyxml2 from c2d3087 to 321ea88

Bump src/external/tinyxml2 from c2d3087 to 321ea88 #360

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
pull_request:
types: [opened, synchronize, reopened]
branches: [main]
release:
types: [created]
env:
# Path to the solution file relative to the root of the project.
solution_file: PapyrusPlugin.sln
jobs:
Build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
configuration: [Release, Debug]
platform: [x64, x86]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
submodules: recursive
show-progress: false
- name: Run git diff check
run: |
git config --global core.whitespace cr-at-eol,tab-in-indent
git diff --check HEAD^ ':!.gitmodules' ':!*.sln' ':!dist/extras' ':!src/external'
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1
- name: Update build number
working-directory: ${{ github.workspace }}\src\Plugin\Common
run: (gc Resources.hpp) -replace 'BUILD_NUMBER 0', 'BUILD_NUMBER ${{ github.run_number }}' | Out-File -encoding ASCII Resources.hpp
- name: Build plugin DLL
run: msbuild /m /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }} ${{ env.solution_file }}
- name: Create packages
if: github.event_name == 'release' && matrix.configuration == 'Release'
working-directory: ${{ github.workspace }}\dist
run: |
copy bin\${{ matrix.platform }}\Papyrus.dll .
& "C:\Program Files\7-Zip\7z.exe" a PapyrusPlugin-${{ github.event.release.tag_name }}-${{ matrix.platform }}.zip Papyrus.dll Papyrus.xml extras themes
& "C:\Program Files\7-Zip\7z.exe" a PapyrusPlugin-${{ github.event.release.tag_name }}-${{ matrix.platform }}-with-manuals.zip Papyrus.dll Papyrus.xml extras themes ..\*.md
- name: Upload release package
if: github.event_name == 'release' && matrix.configuration == 'Release'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./dist/PapyrusPlugin-${{ github.event.release.tag_name }}-${{ matrix.platform }}.zip
asset_name: PapyrusPlugin-${{ github.event.release.tag_name }}-${{ matrix.platform }}.zip
asset_content_type: application/zip
- name: Upload release package with manuals included
if: github.event_name == 'release' && matrix.configuration == 'Release'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./dist/PapyrusPlugin-${{ github.event.release.tag_name }}-${{ matrix.platform }}-with-manuals.zip
asset_name: PapyrusPlugin-${{ github.event.release.tag_name }}-${{ matrix.platform }}-with-manuals.zip
asset_content_type: application/zip
- name: VirusTotal scan
if: github.event_name == 'release' && matrix.configuration == 'Release'
uses: crazy-max/ghaction-virustotal@v4
with:
vt_api_key: ${{ secrets.VIRUSTOTAL_API_KEY }}
github_token: ${{ github.token }}
update_release_body: true
files: |
PapyrusPlugin-${{ github.event.release.tag_name }}-${{ matrix.platform }}.zip
PapyrusPlugin-${{ github.event.release.tag_name }}-${{ matrix.platform }}-with-manuals.zip