GitHub actions: unbreak macOS build

Error: llvm 11.0.0 is already installed

Also make the linking failure non-fatal:

Error: The `brew link` step did not complete successfully
This commit is contained in:
Ulrich Spörlein 2021-01-08 15:36:38 +01:00
parent 6815909abd
commit 40903394bf

View File

@ -25,8 +25,7 @@ jobs:
pkgs: bmake libarchive-dev pkgs: bmake libarchive-dev
- os: macOS-latest - os: macOS-latest
compiler: clang-11 compiler: clang-11
#cross-bindir: /usr/local/Cellar/llvm/11.0.0/bin # script figures this out automatically pkgs: bmake libarchive
pkgs: bmake libarchive llvm@11
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -39,7 +38,7 @@ jobs:
if: runner.os == 'macOS' if: runner.os == 'macOS'
run: | run: |
brew update --quiet || true brew update --quiet || true
brew install ${{ matrix.pkgs }} brew install ${{ matrix.pkgs }} || true
- name: create environment - name: create environment
run: | run: |
echo "GITHUB_WORKSPACE = $GITHUB_WORKSPACE" echo "GITHUB_WORKSPACE = $GITHUB_WORKSPACE"