Update README.md #1157
This file contains hidden or 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
| on: push | |
| name: "Test Homebrew" | |
| jobs: | |
| testBrew: | |
| name: Test Homebrew version | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Build and test bundled homebrew formula | |
| run: | | |
| cd tools/build/homebrew | |
| brew tap-new difegue/lanraragi | |
| echo "Replacing commit hash in formula with current hash $(git rev-parse --verify HEAD)" | |
| sed -i.bck "s/COMMIT_HASH/$(git rev-parse --verify HEAD)/" Lanraragi.rb | |
| echo "Copying test formula to custom tap to allow installation" | |
| cp Lanraragi.rb $(brew --repository)/Library/Taps/difegue/homebrew-lanraragi/Formula/ | |
| brew install --force --verbose --build-from-source difegue/lanraragi/lanraragi | |
| brew test --verbose difegue/lanraragi/lanraragi |