download wintun and psexec

use rsrc tool to generate syso files
This commit is contained in:
Maycon Santos
2023-04-07 18:20:08 +02:00
parent a0441e7d04
commit dea7e8d4e7
3 changed files with 38 additions and 19 deletions

View File

@@ -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 ./...