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