mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-21 09:46:40 +00:00
download wintun and psexec
use rsrc tool to generate syso files
This commit is contained in:
42
.github/workflows/golang-test-windows.yml
vendored
42
.github/workflows/golang-test-windows.yml
vendored
@@ -6,20 +6,12 @@ on:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
pre:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
env:
|
||||
downloadPath: '${{ github.workspace }}\temp'
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: dll
|
||||
path: client/*.dll
|
||||
jobs:
|
||||
|
||||
test:
|
||||
needs: pre
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -40,10 +32,30 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-go-
|
||||
|
||||
- uses: actions/download-artifact@v2
|
||||
- name: Download wintun
|
||||
uses: carlosperate/download-file-action@v2
|
||||
id: download-wintun
|
||||
with:
|
||||
name: dll
|
||||
path: C:\Windows\System32\
|
||||
file-url: https://www.wintun.net/builds/wintun-0.14.1.zip
|
||||
file-name: wintun.zip
|
||||
location: ${{ env.downloadPath }}
|
||||
sha256: '07c256185d6ee3652e09fa55c0b673e2624b565e02c4b9091c79ca7d2f24ef51'
|
||||
|
||||
- name: Decompressing wintun files
|
||||
run: tar -zvxf "${{ steps.download-wintun.outputs.file-path }}" -C ${{ env.downloadPath }}
|
||||
|
||||
- run: mv ${{ env.downloadPath }}/wintun/bin/amd64/wintun.dll 'C:\Windows\System32\'
|
||||
|
||||
- name: Download PSTools
|
||||
uses: carlosperate/download-file-action@v2
|
||||
id: download-pstools
|
||||
with:
|
||||
file-url: https://download.sysinternals.com/files/PSTools.zip
|
||||
file-name: PSTools.zip
|
||||
location: ${{ env.downloadPath }}
|
||||
|
||||
- name: Decompressing PSTools files
|
||||
run: tar -zvxf "${{ steps.download-pstools.outputs.file-path }}" -C ${{ env.downloadPath }}
|
||||
|
||||
- name: Test
|
||||
run: go test -timeout 5m -p 1 ./...
|
||||
run: ${{ env.downloadPath }}\PsExec64.exe -s go test -timeout 5m -p 1 ./...
|
||||
Reference in New Issue
Block a user