From d7333813228b3fc09fde97d93235a3cdd9e2201e Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Fri, 16 Aug 2024 16:54:00 +0200 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- .github/workflows/build-and-deploy.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index e066e150..ba6bc341 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -55,7 +55,16 @@ jobs: if: ${{ matrix.os == 'macos-latest' }} run: brew install libpcap libusb p7zip - - name: Install Dependencies (Windows) + + - name: Install libusb via mingw (Windows) + if: ${{ matrix.os == 'windows-latest' }} + uses: msys2/setup-msys2@v2 + with: + install: |- + mingw64/mingw-w64-x86_64-libusb + mingw64/mingw-w64-x86_64-pkg-config + + - name: Install other Dependencies (Windows) if: ${{ matrix.os == 'windows-latest' }} run: | choco install openssl.light -y @@ -64,14 +73,7 @@ jobs: choco install zadig -y curl -L "https://www.winpcap.org/install/bin/WpdPack_4_1_2.zip" -o "C:\wpcap-sdk.zip" 7z x -y "C:\wpcap-sdk.zip" -o"C:\winpcap" - - - name: Install libusb via mingw - if: ${{ matrix.os == 'windows-latest' }} - uses: msys2/setup-msys2@v2 - with: - install: |- - mingw64/mingw-w64-x86_64-libusb - mingw64/mingw-w64-x86_64-pkg-config + echo "D:\a\_temp\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - name: Build run: make -e TARGET="${{ env.OUTPUT }}"