2021-07-28 23:49:17 +00:00
|
|
|
name: VS2019
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- '.gitignore'
|
|
|
|
- '.gitattributes'
|
|
|
|
- 'res/**'
|
|
|
|
- '**.cmd'
|
|
|
|
- '**.md'
|
|
|
|
- '**.rc'
|
|
|
|
- '**.sh'
|
|
|
|
- '**.txt'
|
|
|
|
- '**.xml'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- '.gitignore'
|
|
|
|
- '.gitattributes'
|
|
|
|
- 'res/**'
|
|
|
|
- '**.cmd'
|
|
|
|
- '**.md'
|
|
|
|
- '**.rc'
|
|
|
|
- '**.sh'
|
|
|
|
- '**.txt'
|
|
|
|
- '**.xml'
|
|
|
|
|
|
|
|
env:
|
|
|
|
SOLUTION_FILE_PATH: ./rufus.sln
|
2021-09-07 00:01:56 +00:00
|
|
|
BUILD_CONFIGURATION: Release
|
2021-07-28 23:49:17 +00:00
|
|
|
|
|
|
|
jobs:
|
2021-09-03 23:55:59 +00:00
|
|
|
VS2019-Build:
|
2021-07-28 23:49:17 +00:00
|
|
|
runs-on: windows-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
TARGET_PLATFORM: [x64, x86, arm64, arm]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
submodules: recursive
|
|
|
|
|
|
|
|
- name: Add MSBuild to PATH
|
|
|
|
uses: microsoft/setup-msbuild@v1
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
2021-09-07 00:01:56 +00:00
|
|
|
msbuild ${{ env.SOLUTION_FILE_PATH }} /m /p:Configuration=${{ env.BUILD_CONFIGURATION }},Platform=${{ matrix.TARGET_PLATFORM }}
|
|
|
|
move ./${{ matrix.TARGET_PLATFORM }}/Release/rufus.exe ./rufus_${{ matrix.TARGET_PLATFORM }}.exe
|
2021-07-28 23:49:17 +00:00
|
|
|
|
2021-07-29 13:36:09 +00:00
|
|
|
- name: Display SHA-256
|
2021-09-07 00:01:56 +00:00
|
|
|
run: sha256sum ./rufus_${{ matrix.TARGET_PLATFORM }}.exe
|
2021-07-29 13:36:09 +00:00
|
|
|
|
|
|
|
- name: Upload to VirusTotal
|
|
|
|
if: ${{ github.event_name == 'push' }}
|
|
|
|
run: |
|
2021-09-07 00:01:56 +00:00
|
|
|
curl --request POST --url https://www.virustotal.com/vtapi/v2/file/scan --form apikey=${{ secrets.VIRUSTOTAL_API_KEY }} --form file=@./rufus_${{ matrix.TARGET_PLATFORM }}.exe
|
|
|
|
curl --request POST --url https://www.virustotal.com/api/v3/monitor/items --header 'x-apikey: ${{ secrets.VIRUSTOTAL_API_KEY }}' --form path='/rufus_${{ matrix.TARGET_PLATFORM }}.exe' --form file=@./rufus_${{ matrix.TARGET_PLATFORM }}.exe
|
2021-07-29 13:36:09 +00:00
|
|
|
|
2021-07-28 23:49:17 +00:00
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
2021-07-29 13:36:09 +00:00
|
|
|
if: ${{ github.event_name == 'push' }}
|
2021-07-28 23:49:17 +00:00
|
|
|
with:
|
|
|
|
name: VS2019
|
|
|
|
path: ./*.exe
|