This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
尝试修复 Test Homebrew 阶段无法通过的问题 #64
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
on: push | |
name: "Test Homebrew" | |
jobs: | |
testBrew: | |
name: 测试 Homebrew 版 | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Build and test bundled homebrew formula | |
run: | | |
cd tools/build/homebrew | |
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 | |
brew install --force --verbose --build-from-source Lanraragi.rb | |
brew test --verbose Lanraragi.rb |