Skip to content

Commit

Permalink
[misc] add VS2019 CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
pbatard committed Sep 3, 2021
1 parent a6ae23a commit abff9b2
Show file tree
Hide file tree
Showing 8 changed files with 87 additions and 70 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/vs2019.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: VS2019

on:
push:
paths-ignore:
- '.gitignore'
- '.gitattributes'
- '**.cmd'
- '**.md'
- 'AUTHORS'
- 'NEWS'
- 'ChangeLog'
pull_request:
paths-ignore:
- '.gitignore'
- '.gitattributes'
- '**.cmd'
- '**.md'
- 'AUTHORS'
- 'NEWS'
- 'ChangeLog'

env:
SOLUTION_FILE_PATH: ./libwdi.sln
BUILD_MACROS: '"WDK_DIR=\"../wdk/Windows Kits/8.0\";LIBUSB0_DIR=\"../libusb0\";LIBUSBK_DIR=\"../libusbk/bin\""'

jobs:
build:
runs-on: windows-latest

strategy:
matrix:
TARGET_PLATFORM: [x64, Win32]

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
- name: Download support files
shell: cmd
run: |
curl -L https://go.microsoft.com/fwlink/p/?LinkID=253170 -o wdk-redist.msi
curl -L https://sourceforge.net/projects/libusb-win32/files/libusb-win32-releases/1.2.6.0/libusb-win32-bin-1.2.6.0.zip/download -o libusb0-redist.zip
curl -L https://github.com/mcuee/libusbk/releases/download/V3.1.0.0/libusbK-3.1.0.0-bin.7z -o libusbk-redist.7z
msiexec /a wdk-redist.msi /qn TARGETDIR=%CD%\wdk
7z x libusb0-redist.zip
7z x libusbk-redist.7z
del *.zip
del *.7z
move libusb-win32* libusb0
move libusbK* libusbk
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1
- name: Build
shell: cmd
run: |
msbuild ${{ env.SOLUTION_FILE_PATH }} /m /p:Configuration=Debug,Platform=${{ matrix.TARGET_PLATFORM }},BuildMacros=${{ env.BUILD_MACROS }}
msbuild ${{ env.SOLUTION_FILE_PATH }} /m /p:Configuration=Release,Platform=${{ matrix.TARGET_PLATFORM }},BuildMacros=${{ env.BUILD_MACROS }}
- name: Display SHA-256
if: ${{ github.event_name == 'push' }}
run: sha256sum ./${{ matrix.TARGET_PLATFORM }}/*/examples/*.exe
- name: Upload artifacts
uses: actions/upload-artifact@v2
if: ${{ github.event_name == 'push' }}
with:
name: VS2019
path: ./*/*/examples/*.exe
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright © 2010-2020 Pete Batard <pete@akeo.ie>
Copyright © 2010-2021 Pete Batard <pete@akeo.ie>
Copyright © 2010-2011 Travis Robinson <libusbdotnet@gmail.com>

Other contributors:
Expand Down
52 changes: 0 additions & 52 deletions appveyor.yml

This file was deleted.

8 changes: 4 additions & 4 deletions examples/wdi-simple.rc
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#endif

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,3,744,0
PRODUCTVERSION 1,3,744,0
FILEVERSION 1,3,745,0
PRODUCTVERSION 1,3,745,0
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -25,13 +25,13 @@ BEGIN
BEGIN
VALUE "CompanyName", "akeo.ie"
VALUE "FileDescription", "WDI-Simple"
VALUE "FileVersion", "1.3.744"
VALUE "FileVersion", "1.3.745"
VALUE "InternalName", "WDI-Simple"
VALUE "LegalCopyright", "� 2010-2018 Pete Batard (LGPL v3)"
VALUE "LegalTrademarks", "http://www.gnu.org/copyleft/lesser.html"
VALUE "OriginalFilename", "wdi-simple.exe"
VALUE "ProductName", "WDI-Simple"
VALUE "ProductVersion", "1.3.744"
VALUE "ProductVersion", "1.3.745"
VALUE "Comments", "http://libwdi.akeo.ie"
END
END
Expand Down
8 changes: 4 additions & 4 deletions examples/zadic.rc
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,3,744,0
PRODUCTVERSION 1,3,744,0
FILEVERSION 1,3,745,0
PRODUCTVERSION 1,3,745,0
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -74,13 +74,13 @@ BEGIN
BEGIN
VALUE "CompanyName", "akeo.ie"
VALUE "FileDescription", "Zadic"
VALUE "FileVersion", "1.3.744"
VALUE "FileVersion", "1.3.745"
VALUE "InternalName", "Zadic"
VALUE "LegalCopyright", "� 2010-2018 Pete Batard (LGPL v3)"
VALUE "LegalTrademarks", "http://www.gnu.org/copyleft/lesser.html"
VALUE "OriginalFilename", "zadic.exe"
VALUE "ProductName", "Zadic"
VALUE "ProductVersion", "1.3.744"
VALUE "ProductVersion", "1.3.745"
VALUE "Comments", "http://libwdi.akeo.ie"
END
END
Expand Down
2 changes: 1 addition & 1 deletion examples/zadig.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
#define FIELD_ORANGE RGB(255,240,200)
#define ARROW_GREEN RGB(92,228,65)
#define ARROW_ORANGE RGB(253,143,56)
#define APP_VERSION "Zadig 2.5.744"
#define APP_VERSION "Zadig 2.5.745"

// These are used to flag end users about the driver they are going to replace
enum driver_type {
Expand Down
8 changes: 4 additions & 4 deletions examples/zadig.rc
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 2,5,744,0
PRODUCTVERSION 2,5,744,0
FILEVERSION 2,5,745,0
PRODUCTVERSION 2,5,745,0
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -264,13 +264,13 @@ BEGIN
BEGIN
VALUE "CompanyName", "akeo.ie"
VALUE "FileDescription", "Zadig"
VALUE "FileVersion", "2.5.744"
VALUE "FileVersion", "2.5.745"
VALUE "InternalName", "Zadig"
VALUE "LegalCopyright", "� 2010-2018 Pete Batard (GPL v3)"
VALUE "LegalTrademarks", "http://www.gnu.org/copyleft/gpl.html"
VALUE "OriginalFilename", "zadig.exe"
VALUE "ProductName", "Zadig"
VALUE "ProductVersion", "2.5.744"
VALUE "ProductVersion", "2.5.745"
VALUE "Comments", "http://libwdi.akeo.ie"
END
END
Expand Down
8 changes: 4 additions & 4 deletions libwdi/libwdi.rc
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,3,744,0
PRODUCTVERSION 1,3,744,0
FILEVERSION 1,3,745,0
PRODUCTVERSION 1,3,745,0
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -68,13 +68,13 @@ BEGIN
BEGIN
VALUE "CompanyName", "akeo.ie"
VALUE "FileDescription", "libwdi: Windows Driver Installer Library"
VALUE "FileVersion", "1.3.744"
VALUE "FileVersion", "1.3.745"
VALUE "InternalName", "libwdi"
VALUE "LegalCopyright", "� 2010-2017 Pete Batard (LGPL v3)"
VALUE "LegalTrademarks", "http://www.gnu.org/copyleft/lesser.html"
VALUE "OriginalFilename", "libwdi"
VALUE "ProductName", "libwdi"
VALUE "ProductVersion", "1.3.744"
VALUE "ProductVersion", "1.3.745"
VALUE "Comments", "http://libwdi.akeo.ie"
END
END
Expand Down

0 comments on commit abff9b2

Please sign in to comment.