Skip to content

build(deps): bump golang.org/x/crypto from 0.13.0 to 0.17.0 #209

build(deps): bump golang.org/x/crypto from 0.13.0 to 0.17.0

build(deps): bump golang.org/x/crypto from 0.13.0 to 0.17.0 #209

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build_multi_platform:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: "1.20"
- name: Build for multi-platform
run: |
set -xeu
DIST=dist
mkdir $DIST
# (from: https://www.digitalocean.com/community/tutorials/how-to-build-go-executables-for-multiple-platforms-on-ubuntu-16-04)
platforms=("linux/amd64" "darwin/amd64" "linux/arm" "windows/amd64")
for platform in "${platforms[@]}"
do
platform_split=(${platform//\// })
export GOOS=${platform_split[0]}
export GOARCH=${platform_split[1]}
[ $GOOS = "windows" ] && EXTENSION='.exe' || EXTENSION=''
BUILD_PATH=piping-sshd-$GOOS-$GOARCH
mkdir $BUILD_PATH
# Build
CGO_ENABLED=0 go build -o "${BUILD_PATH}/piping-sshd${EXTENSION}" main/main.go
done