vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

macos.yml

(1237B)


      1 name: macOS
      2 
      3 on: [push, pull_request]
      4 
      5 jobs:
      6   build:
      7     runs-on: macos-latest
      8     strategy:
      9       matrix:
     10         config:
     11           - ""
     12           - --disable-curses
     13           - --disable-lua
     14           - --disable-tre
     15           - --disable-help
     16     env:
     17       CFLAGS_EXTRA: --coverage
     18       LDFLAGS_EXTRA: --coverage
     19     steps:
     20 
     21     - name: Checkout
     22       uses: actions/checkout@v4
     23 
     24     - name: Dependency Homebrew
     25       run: |
     26         brew install \
     27           coreutils \
     28           libtermkey \
     29           lua \
     30           luarocks \
     31           tre \
     32           pkg-config
     33 
     34     - name: Dependency LuaRocks
     35       run: |
     36         sudo luarocks install lpeg
     37 
     38     - name: Build
     39       run: |
     40         ./configure ${{ matrix.config }}
     41         make
     42 
     43     - name: Test
     44       run: |
     45         make test
     46 
     47     - name: Upload Test Coverage
     48       env:
     49         CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
     50       run: |
     51         curl -s https://codecov.io/bash > codecov
     52         curl -s https://raw.githubusercontent.com/codecov/codecov-bash/master/SHA256SUM > codecov.sha256
     53         if sha256sum -c --ignore-missing --status codecov.sha256 ; then
     54           bash < codecov || true
     55         else
     56           echo "Download checksum verification failed"
     57         fi