76 lines
1.5 KiB
YAML
76 lines
1.5 KiB
YAML
name: test
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
|
|
|
|
lin:
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [
|
|
'18.04',
|
|
'20.04'
|
|
]
|
|
runs-on: ubuntu-${{ matrix.os }}
|
|
name: '🐧 Ubuntu ${{ matrix.os }}'
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt update -qq
|
|
sudo apt install -y make g++ git bison flex gperf libreadline-dev autoconf
|
|
|
|
- name: Build
|
|
run: |
|
|
autoconf
|
|
./configure --prefix=$HOME
|
|
make install
|
|
make check
|
|
|
|
- name: Test
|
|
run: |
|
|
export PATH=$HOME/bin:$PATH
|
|
sh .github/test.sh
|
|
|
|
|
|
win:
|
|
runs-on: windows-latest
|
|
name: '🧊 Windows'
|
|
steps:
|
|
|
|
- run: git config --global core.autocrlf input
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: msys2/setup-msys2@v2
|
|
with:
|
|
release: false
|
|
msystem: MINGW64
|
|
install: >
|
|
base-devel
|
|
mingw-w64-x86_64-toolchain
|
|
update: true
|
|
|
|
- name: Build and test
|
|
shell: bash
|
|
run: |
|
|
export msys2='cmd //C RefreshEnv.cmd '
|
|
export msys2+='& set MSYS=winsymlinks:nativestrict '
|
|
export msys2+='& C:\\msys64\\msys2_shell.cmd -defterm -no-start'
|
|
export mingw64="$msys2 -mingw64 -full-path -here -c "\"\$@"\" --"
|
|
export msys2+=" -msys2 -c "\"\$@"\" --"
|
|
|
|
$mingw64 ./autoconf.sh
|
|
$mingw64 ./configure
|
|
$mingw64 make install
|
|
$mingw64 make check
|
|
|
|
sh .github/test.sh
|