From 025ab0f5789621beb470a1eb0a3ce9a437682dbf Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Sun, 21 Apr 2024 08:25:31 -0600 Subject: [PATCH] ci: fix macOS runner Apparently Github changed the permissions on /usr/local in the default image so now we need to use `sudo` for luarocks to be able to install packages. While I'm here: update the checkout dependency and use macOS-latest image instead of multiple old images. --- .github/workflows/macos.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 6fc017a23..06d484bdf 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -4,25 +4,22 @@ on: [push, pull_request] jobs: build: + runs-on: macos-latest strategy: matrix: - os: - - macos-12 - - macos-11 # latest config: - "" - --disable-curses - --disable-lua - --disable-tre - --disable-help - runs-on: ${{ matrix.os }} env: CFLAGS_EXTRA: --coverage LDFLAGS_EXTRA: --coverage steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Dependency Homebrew run: | @@ -36,8 +33,8 @@ jobs: - name: Dependency LuaRocks run: | - luarocks install lpeg - luarocks install busted + sudo luarocks install lpeg + sudo luarocks install busted - name: Build run: |