mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
13cab7b637
commit
9266ee942f
1 changed files with 12 additions and 9 deletions
19
.github/workflows/test-on-windows.yml
vendored
19
.github/workflows/test-on-windows.yml
vendored
|
@ -24,21 +24,24 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go-version }}
|
go-version: ${{ matrix.go-version }}
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install libus via mingw
|
||||||
|
uses: msys2/setup-msys2@v2
|
||||||
|
with:
|
||||||
|
install: |-
|
||||||
|
mingw64/mingw-w64-x86_64-libusb
|
||||||
|
mingw64/mingw-w64-x86_64-pkg-config
|
||||||
|
|
||||||
|
- name: Install other dependencies
|
||||||
run: |
|
run: |
|
||||||
choco install openssl.light -y
|
choco install openssl.light -y
|
||||||
choco install make -y
|
choco install make -y
|
||||||
choco install 7zip -y
|
choco install 7zip -y
|
||||||
choco install pkgconfiglite -y
|
|
||||||
mkdir C:\pkg-config
|
|
||||||
choco install zadig -y
|
choco install zadig -y
|
||||||
curl -L "https://github.com/libusb/libusb/releases/download/v1.0.24/libusb-1.0.24.7z" -o "C:\libusb.7z"
|
|
||||||
7z x -y "C:\libusb.7z" -o"C:\libusb"
|
|
||||||
curl -L "https://www.winpcap.org/install/bin/WpdPack_4_1_2.zip" -o "C:\wpcap-sdk.zip"
|
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"
|
7z x -y "C:\wpcap-sdk.zip" -o"C:\winpcap"
|
||||||
copy builder\libusb.pc C:\pkg-config\libusb.pc
|
|
||||||
copy builder\libusb.pc C:\pkg-config\libusb-1.0.pc
|
- run: echo "D:\a\_temp\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: env GO111MODULE=on PKG_CONFIG_PATH=C:\pkg-config\ make test
|
run: env GO111MODULE=on make test
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue