2021-05-06 20:08:18 +02:00
|
|
|
# windows builds ooniprobe for Windows
|
2020-08-22 11:20:50 +02:00
|
|
|
name: windows
|
|
|
|
on:
|
|
|
|
push:
|
2021-05-06 20:08:18 +02:00
|
|
|
branches:
|
|
|
|
- "release/**"
|
2020-08-22 11:20:50 +02:00
|
|
|
jobs:
|
|
|
|
build:
|
2021-05-06 20:08:18 +02:00
|
|
|
runs-on: "ubuntu-20.04"
|
2020-08-22 11:20:50 +02:00
|
|
|
steps:
|
2021-05-11 16:15:13 +02:00
|
|
|
- uses: actions/setup-go@v1
|
|
|
|
with:
|
2021-11-10 14:18:04 +01:00
|
|
|
go-version: "1.17.3"
|
2020-08-22 11:20:50 +02:00
|
|
|
- uses: actions/checkout@v2
|
2021-05-06 20:08:18 +02:00
|
|
|
- run: sudo apt install mingw-w64
|
2021-05-11 16:15:13 +02:00
|
|
|
- run: ./mk OONI_PSIPHON_TAGS="" MINGW_W64_VERSION="9.3-win32" ./CLI/windows/amd64/ooniprobe.exe
|
2021-05-06 20:08:18 +02:00
|
|
|
- uses: actions/upload-artifact@v2
|
2020-08-22 11:20:50 +02:00
|
|
|
with:
|
2021-05-06 20:08:18 +02:00
|
|
|
name: ooniprobe.exe
|
2020-08-22 11:20:50 +02:00
|
|
|
path: ./CLI/windows/amd64/ooniprobe.exe
|
2021-05-06 20:08:18 +02:00
|
|
|
test:
|
|
|
|
needs: build
|
|
|
|
runs-on: "windows-2019"
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/download-artifact@v2
|
|
|
|
with:
|
|
|
|
name: ooniprobe.exe
|
2021-05-13 18:04:47 +02:00
|
|
|
- run: bash.exe ./E2E/ooniprobe.sh ./ooniprobe.exe
|