2020-08-22 11:20:50 +02:00
|
|
|
# Build and test Linux binary
|
|
|
|
name: linux
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
schedule:
|
|
|
|
- cron: "14 17 * * 3"
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
steps:
|
2021-01-20 13:09:37 +01:00
|
|
|
- name: Docker
|
|
|
|
run: |
|
|
|
|
echo $'{\n "experimental": true\n}' | sudo tee /etc/docker/daemon.json
|
|
|
|
sudo service docker restart
|
2020-08-22 11:20:50 +02:00
|
|
|
- uses: actions/setup-go@v1
|
|
|
|
with:
|
2021-03-02 12:08:24 +01:00
|
|
|
go-version: "1.16"
|
2020-08-22 11:20:50 +02:00
|
|
|
- uses: actions/checkout@v2
|
2021-01-20 13:09:37 +01:00
|
|
|
- run: DOCKER_CLI_EXPERIMENTAL=enabled ./build.sh linux
|
2020-08-22 11:20:50 +02:00
|
|
|
- run: ./smoketest.sh ./CLI/linux/amd64/ooniprobe
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: ooniprobe-linux-amd64
|
|
|
|
path: ./CLI/linux/amd64/ooniprobe
|