vis

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

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

ubuntu.yml

(1284B)


      1 name: Ubuntu
      2 
      3 on: [push, pull_request]
      4 
      5 jobs:
      6   build:
      7     strategy:
      8       matrix:
      9         config:
     10           - ""
     11           - --disable-curses
     12           - --disable-lua
     13           - --disable-tre
     14           - --disable-selinux
     15           - --disable-acl
     16           - --disable-help
     17     runs-on: ubuntu-latest
     18     env:
     19       CFLAGS_EXTRA: --coverage
     20       LDFLAGS_EXTRA: --coverage
     21     steps:
     22 
     23     - name: Checkout
     24       uses: actions/checkout@v3
     25 
     26     - name: Dependency
     27       run: |
     28         sudo apt install \
     29           9base \
     30           libacl1-dev \
     31           liblua5.3-dev \
     32           libncursesw5-dev \
     33           libselinux1-dev \
     34           libtermkey-dev \
     35           libtre-dev \
     36           lua-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