Skip to content

Commit

Permalink
Use crystal-lang/install-crystal action for macOS build step and remo…
Browse files Browse the repository at this point in the history
…ve manual installation
  • Loading branch information
vitobotta committed Jan 25, 2025
1 parent 87a5a66 commit c3b19c5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,16 @@ jobs:
with:
set-safe-directory: '/home/runner/work/hetzner-k3s/hetzner-k3s'


- if: matrix.binary_os_suffix == 'macos'
uses: crystal-lang/install-crystal@v1
with:
crystal: 1.14.1

- if: matrix.binary_os_suffix == 'macos'
name: macos build step
run: |
brew install libssh2 openssl@3
wget https://github.com/crystal-lang/crystal/releases/download/1.14.1/crystal-1.14.1-1-darwin-universal.tar.gz
tar -xzf crystal-1.14.1-1-darwin-universal.tar.gz
cp crystal-1.14.1-1/embedded/bin/* /usr/local/bin/
shards install --without-development
crystal build src/hetzner-k3s.cr --release
chmod +x hetzner-k3s
Expand Down

0 comments on commit c3b19c5

Please sign in to comment.