b5ba1e743f
Like in the previous PR, here we make macos and windows builds only run when we're preparing a release. While there, migrate the code to use the `./make` script. Tested in https://github.com/ooni/probe-cli/pull/331. Reference issue is https://github.com/ooni/probe/issues/1466
27 lines
693 B
YAML
27 lines
693 B
YAML
# windows builds ooniprobe for Windows
|
|
name: windows
|
|
on:
|
|
push:
|
|
branches:
|
|
- "release/**"
|
|
jobs:
|
|
build:
|
|
runs-on: "ubuntu-20.04"
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: sudo apt install mingw-w64
|
|
- run: ./make --disable-embedding-psiphon-config -t ./CLI/windows/amd64/ooniprobe.exe
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
name: ooniprobe.exe
|
|
path: ./CLI/windows/amd64/ooniprobe.exe
|
|
test:
|
|
needs: build
|
|
runs-on: "windows-2019"
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/download-artifact@v2
|
|
with:
|
|
name: ooniprobe.exe
|
|
- run: bash.exe ./smoketest.sh ./ooniprobe.exe
|