Skip to content

Commit

Permalink
Disable MacStadium releases
Browse files Browse the repository at this point in the history
MacStadium account has been cancelled apparently

Maybe it would be possible to achieve something similar
using GitHub Actions + MacOSX runners.
I wasn't able to make it work because of `staticx` lacks
support for MacOSX.

See: https://github.com/fnaranjo-vmw/tile-generator/actions/runs/5278419786/jobs/9547730677#step:5:157
  • Loading branch information
fnaranjo-vmw authored Jun 15, 2023
1 parent eb878d0 commit 1e8db6f
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions ci/pipeline.yml.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,6 @@ jobs:
outputs:
- name: tile-generator-dist
- name: tile-generator-dist-release
params:
mac_ip: ((macstadium.ip))
mac_ssh_key: ((macstadium.ssh_key))
run:
path: bash
args:
Expand All @@ -257,10 +254,7 @@ jobs:
command -v objcopy >/dev/null 2>&1 && command -v git >/dev/null 2>&1 || apt install --yes binutils git
apt install patchelf

# MacStadium is a Mac as a Service provider that we used to build the Mac binary for tile generator
cd tile-generator-repo
echo "$mac_ssh_key" > mac_ssh_key
chmod 600 mac_ssh_key

function build(){
rm -rf dist*
Expand All @@ -278,26 +272,10 @@ jobs:
done
}

function build-remote(){
SKIP_SDIST='true'
HEAD="$HEAD"
ssh -oStrictHostKeyChecking=no -i mac_ssh_key -t "administrator@${mac_ip}" "$(typeset -f build)
VERSION="$VERSION"
FINAL_VERSION="$FINAL_VERSION"
cd tile-generator
git fetch origin
git reset --hard "$HEAD"
build
rm -rf dist/
"
scp -oStrictHostKeyChecking=no -i mac_ssh_key -r "administrator@${mac_ip}":tile-generator/dist* .
}

VERSION=`cat ../version/version`
FINAL_VERSION=`cat ../final-version/version`
build
HEAD=`git log --pretty=format:'%h' -n 1`
build-remote

cp dist-"$VERSION"/* ../tile-generator-dist/
tar -cvzf ../tile-generator-dist-release/bundle-"$VERSION".tar.gz dist-"$FINAL_VERSION"/*
Expand Down

0 comments on commit 1e8db6f

Please sign in to comment.