Updated FreeBSD builds to support cloudflare/go (#1)

Signed-off-by: Rob van Oostenrijk <robvanoostenrijk@noreply.users.github.com>
Co-authored-by: Rob van Oostenrijk <robvanoostenrijk@noreply.users.github.com>
This commit is contained in:
Rob van Oostenrijk 2024-01-13 16:08:58 +04:00 committed by GitHub
parent 258a8d4d95
commit c8f905e23c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 43 additions and 0 deletions

43
.github/workflows/main.yaml vendored Normal file
View File

@ -0,0 +1,43 @@
name: Build & Upload Artifacts
on:
push:
tags:
- '*'
jobs:
build-container-and-deploy:
runs-on: ubuntu-latest
name: Build cloudflared for FreeBSD
if: github.event_name == 'push'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build
shell: bash
run: |
# Install cloudflare-go
./.teamcity/install-cloudflare-go.sh
# Disable FIPS module in go-boring
export GOEXPERIMENT=noboringcrypto
export CGO_ENABLED=0
freebsdArchs=("386" "amd64" "arm" "arm64")
export TARGET_OS=freebsd
for arch in ${freebsdArchs[@]}; do
export TARGET_ARCH=$arch
echo "Building cloudflared-freebsd-$arch"
make cloudflared
tar -cJvf /tmp/cloudflared-freebsd-$arch.tar.xz ./cloudflared
rm ./cloudflared
done
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
/tmp/cloudflared-freebsd-arm64.tar.xz
/tmp/cloudflared-freebsd-amd64.tar.xz
/tmp/cloudflared-freebsd-386.tar.xz
/tmp/cloudflared-freebsd-arm.tar.xz