Skip to content

Workflow file for this run

# .github/workflows/test-build.yaml
on: push
jobs:
build-linux:
name: Build Linux Client
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.16
- name: Build
run: make build-linux
build-windows:
name: Build Windows Client
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.16
- name: Build
run: make build-windows
build-darwin:
name: Build MacOS Client
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Build
run: go build -ldflags "-s -w -X main.version=$GITHUB_REF_NAME" albiondata-client.go
- name: ls
run: ls -la
- name: gzip
run: gzip -k9 albiondata-client
- name: mv
run: mv albiondata-client.gz update-darwin-amd64.gz
- name: package
run: |
TEMP="albiondata-client"
ZIPNAME="albiondata-client-amd64-mac.zip"
rm -rfv ./scripts/$TEMP
rm -rfv ./$ZIPNAME
rm -rfv ./scripts/update-darwin-amd64.zip
mkdir -v ./scripts/$TEMP
cp -v albiondata-client ./scripts/$TEMP/albiondata-client-executable
cd scripts
cp -v run.command ./$TEMP/run.command
# chown -Rv ${USER}:${USER} ./$TEMP
chmod -v 777 ./$TEMP/*
zip -v ../$ZIPNAME -r ./"$TEMP"
- name: ls
run: ls -la