remove test windows build gha #34
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .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 | |
- uses: actions/upload-artifact@v3 | |
if: ${{ env.ACT }} | |
with: | |
name: files | |
path: albiondata-client | |
- uses: actions/upload-artifact@v3 | |
if: ${{ env.ACT }} | |
with: | |
name: files | |
path: update-linux-amd64.gz | |
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: install nsis | |
run: sudo apt-get update; sudo apt-get -y install nsis | |
- name: Make | |
run: make build-windows | |
- uses: actions/upload-artifact@v3 | |
if: ${{ env.ACT }} | |
with: | |
name: files | |
path: albiondata-client.exe | |
- uses: actions/upload-artifact@v3 | |
if: ${{ env.ACT }} | |
with: | |
name: files | |
path: update-windows-amd64.exe.gz | |
- uses: actions/upload-artifact@v3 | |
if: ${{ env.ACT }} | |
with: | |
name: files | |
path: albiondata-client-amd64-installer.exe | |
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 |