back-button/.github/workflows/test.yml

48 lines
1001 B
YAML

name: CI
on:
pull_request:
paths-ignore:
- '**.rst'
- '**.txt'
- '**.texi'
push:
paths-ignore:
- '**.txt'
- '**.rst'
- '**.texi'
branches-ignore:
- 'master'
- 'github'
- 'main'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-12]
emacs_version: [27.2, 28.2, 29.2]
steps:
- uses: actions/checkout@v2
- uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}
- name: paths
run: |
echo "$HOME/bin" >> $GITHUB_PATH
echo "$HOME/.local/bin" >> $GITHUB_PATH
echo "LD_LIBRARY_PATH=$HOME/.local/lib" >> $GITHUB_ENV
- name: apt-get
if: startsWith(runner.os, 'Linux')
run: |
sudo apt-get -yq update
DEBIAN_FRONTEND=noninteractive sudo apt-get -yq install gnutls-bin sharutils gnupg2 dirmngr libreadline-dev libcurl4-openssl-dev
- name: test
run: |
make test