diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b58573bc..e27f957e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -253,16 +253,15 @@ jobs: # This is provided by `brew install filosottile/musl-cross/musl-cross`. run: | set -euxo pipefail - brew update - # https://github.com/actions/setup-python/issues/577 - find /usr/local/bin -type l -exec sh -c 'readlink -f "$1" \ - | grep -q ^/Library/Frameworks/Python.framework/Versions/' _ {} \; -exec rm -v {} \; - brew install --formula curl dpkg gnu-tar llvm lynx pkg-config qemu + # Dependencies are tracked in `Brewfile`. + brew bundle echo $(brew --prefix curl)/bin >> $GITHUB_PATH echo $(brew --prefix gnu-tar)/libexec/gnubin >> $GITHUB_PATH echo $(brew --prefix llvm)/bin >> $GITHUB_PATH - brew install filosottile/musl-cross/musl-cross - ln -s "$(brew --prefix musl-cross)/bin/x86_64-linux-musl-gcc" /usr/local/bin/musl-gcc + + # https://github.com/actions/setup-python/issues/577 + find /usr/local/bin -type l -exec sh -c 'readlink -f "$1" \ + | grep -q ^/Library/Frameworks/Python.framework/Versions/' _ {} \; -exec rm -v {} \; - uses: dtolnay/rust-toolchain@nightly with: diff --git a/Brewfile b/Brewfile new file mode 100644 index 00000000..2b7525a5 --- /dev/null +++ b/Brewfile @@ -0,0 +1,12 @@ +# Keep this congruent with `.github/workflows/ci.yml`. + +brew "curl" +brew "dpkg" +brew "gnu-tar" +brew "llvm" +brew "lynx" +brew "pkg-config" +brew "qemu" + +tap "filosottile/musl-cross" +brew "filosottile/musl-cross/musl-cross"