Skip to content

Commit

Permalink
Add homebrew worker.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasper Peeters committed Sep 28, 2024
1 parent 9bf58e9 commit 3f09a39
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/homebrew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ jobs:
run: |
export VERSION=$(cat build/VERSION)
wget https://github.com/kpeeters/cadabra2/archive/refs/tags/${VERSION}.tar.gz
export SHA=`cat ${VERSION}.tar.gz | sha256sum -b | cut -d " " -f 1`
export SHA=`cat ${VERSION}.tar.gz | sha256sum -b | cut -d " " -f 1`
echo ${SHA}
cd homebrew-repo
cat cadabra2.rb | sed -e 's/$ url .*/ url "https:\/\/github.com\/kpeeters\/cadabra2\/archive\/refs\/tags\/${VERSION}.tar.gz"/' | sed -e 's/ sha256.*/ sha256 "${SHA}"/' > out.rb
cat cadabra2.rb | sed -e 's/$ url .*/ url "https:\/\/github.com\/kpeeters\/cadabra2\/archive\/refs\/tags\/${VERSION}.tar.gz"/' | sed -e 's/$ sha256.*/ sha256 "${SHA}"/' > out.rb
mv out.rb cadabra2.rb
cat cadabra2.rb

0 comments on commit 3f09a39

Please sign in to comment.