Skip to content

Commit

Permalink
ci: fix macOS runner
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rnpnr committed Apr 21, 2024
1 parent 6504594 commit 025ab0f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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: |
Expand Down

0 comments on commit 025ab0f

Please sign in to comment.