vis

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

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

windows.yml.NOACTIVE

(1809B)


      1 name: Windows
      2 
      3 on: [push, pull_request]
      4 
      5 jobs:
      6   build:
      7     strategy:
      8       matrix:
      9         os:
     10           - windows-2022 # latest
     11           - windows-2019
     12         config:
     13           - ""
     14           - --disable-lua
     15           - --disable-help
     16     runs-on: ${{ matrix.os }}
     17     env:
     18       CFLAGS_EXTRA: --coverage
     19       LDFLAGS_EXTRA: --coverage
     20     steps:
     21 
     22     - name: Dependency
     23       run: |
     24         choco install --no-progress --yes --force --source=cygwin gcc-core,libtool,make,wget,pkg-config
     25         choco install --no-progress --yes --force --source=cygwin lua,lua-devel,lua-lpeg,libncurses-devel
     26 
     27     - name: Setup $PATH
     28       shell: bash
     29       run: echo 'C:\tools\cygwin\bin' >> $GITHUB_PATH
     30 
     31     - name: Git configuration
     32       run: |
     33         git config --global core.autocrlf input
     34         git config --global core.symlinks true
     35 
     36     - name: Checkout
     37       uses: actions/checkout@v2
     38 
     39     - name: Cygwin git configuration
     40       shell: bash
     41       run: mkdir $HOME && git config --global core.autocrlf input
     42 
     43     - name: Libtermkey
     44       shell: bash
     45       run: make dependency/build/libtermkey-install
     46 
     47     - name: Build
     48       shell: bash
     49       run: ./configure CFLAGS="-I$(pwd)/dependency/install/usr/include" LDFLAGS="-L$(pwd)/dependency/install/usr/lib" ${{ matrix.config }} && make
     50 
     51     - name: Test
     52       shell: bash
     53       run: make test
     54 
     55     - name: Upload Test Coverage
     56       shell: bash
     57       env:
     58         CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
     59       run: |
     60         curl -s https://codecov.io/bash > codecov
     61         curl -s https://raw.githubusercontent.com/codecov/codecov-bash/master/SHA256SUM > codecov.sha256
     62         if ! sha256sum -c --ignore-missing --status codecov.sha256 ; then
     63           echo "Download checksum verification failed"
     64           exit 1
     65         fi
     66         bash < codecov