mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +00:00
use paexec and use always to build cache
This commit is contained in:
15
.github/workflows/golang-test-windows.yml
vendored
15
.github/workflows/golang-test-windows.yml
vendored
@@ -38,13 +38,18 @@ jobs:
|
|||||||
|
|
||||||
- run: mv ${{ env.downloadPath }}/wintun/bin/amd64/wintun.dll 'C:\Windows\System32\'
|
- run: mv ${{ env.downloadPath }}/wintun/bin/amd64/wintun.dll 'C:\Windows\System32\'
|
||||||
|
|
||||||
- name: Install sysinternals
|
- name: Download PaExec
|
||||||
run: choco install -y --no-progress sysinternals
|
run: |
|
||||||
- name: accept eula
|
choco install wget --no-progress
|
||||||
run: PsExec64 -accepteula -s ipconfig
|
wget -q https://www.poweradmin.com/paexec/paexec.exe -P C:\Windows\System32
|
||||||
|
|
||||||
- name: Generate Iface Test bin
|
- name: Generate Iface Test bin
|
||||||
run: go test -c -o iface-testing.bin.exe ./iface/
|
run: go test -c -o iface-testing.bin.exe ./iface/
|
||||||
- name: Test
|
- name: Test
|
||||||
|
if: ${{ always() }}
|
||||||
run: |
|
run: |
|
||||||
mv iface-testing.bin.exe 'C:\Windows\temp\'
|
mv iface-testing.bin.exe 'C:\Windows\temp\'
|
||||||
PsExec64 -s 'C:\Windows\temp\iface-testing.bin.exe'
|
paexec -lo $pwd\output.txt -s 'C:\Windows\temp\iface-testing.bin.exe'
|
||||||
|
- name: print log
|
||||||
|
if: ${{ always() }}
|
||||||
|
run: Get-Content $pwd\output.txt
|
||||||
Reference in New Issue
Block a user