611fed05f4
* [forwardport] release 3.11: update all the dependencies (#636) This diff forward ports e291e436b3c332300f5567796f9c48bb9bc1e652. * chore: use go1.17.4 everywhere Part of https://github.com/ooni/probe/issues/1843 * chore: update to the latest ooni/oohttp Part of https://github.com/ooni/probe/issues/1843 * chore: update the dependencies Note: I did an update and not an upgrade (i.e., I didn't check whether we have next-major-versions of dependencies). Part of https://github.com/ooni/probe/issues/1843 * chore: update the user-agent we use Part of https://github.com/ooni/probe/issues/1843 * chore: update ooni/oohttp and ooni/probe-assets Part of https://github.com/ooni/probe/issues/1843 * chore: run go generate again Part of https://github.com/ooni/probe/issues/1843 * fix(jafar): skip currently broken test Created issue for it here: https://github.com/ooni/probe/issues/1913
29 lines
881 B
YAML
29 lines
881 B
YAML
# oohelperd builds and publishes oohelperd for Linux
|
|
name: oohelperd
|
|
on:
|
|
push:
|
|
branches:
|
|
- "release/**"
|
|
tags:
|
|
- "v*"
|
|
|
|
jobs:
|
|
build_and_publish:
|
|
runs-on: "ubuntu-20.04"
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-go@v1
|
|
with:
|
|
go-version: "1.17.4"
|
|
|
|
- name: build oohelperd binary
|
|
run: GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o ./CLI/oohelperd-linux-amd64 -v -tags netgo -ldflags="-s -w -extldflags -static" ./internal/cmd/oohelperd
|
|
|
|
- run: |
|
|
tag=$(echo $GITHUB_REF | sed 's|refs/tags/||g')
|
|
gh release create -p $tag --target $GITHUB_SHA || true
|
|
gh release upload $tag --clobber ./CLI/oohelperd-linux-amd64
|
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|