mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-01 04:31:53 -07:00
This reverts commit 8a8d5f71b1
.
There will be a separate GH Actions workflow for rebuilding the manpage,
and generatemanpage will be dropped from xmonad.cabal (see
https://github.com/xmonad/xmonad/issues/283) therefore the revert no
longer makes sense and the stack workflow can indeed be reverted back to
a working state so we can continue from there.
For more information, see the following revenge revert storm:
Related: https://github.com/xmonad/xmonad/issues/283
Related: https://github.com/xmonad/xmonad/pull/260
Related: https://github.com/xmonad/xmonad/pull/261
Related: https://github.com/xmonad/xmonad/pull/265
Related: https://github.com/xmonad/xmonad/pull/266
Related: https://github.com/xmonad/xmonad/pull/267
Related: https://github.com/xmonad/xmonad/pull/268
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
name: CI
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
resolver: [lts-16, lts-15, lts-14, lts-12]
|
|
|
|
steps:
|
|
- name: Clone project
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Cache dependencies
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/.stack
|
|
key: ${{ runner.os }}-${{ matrix.resolver }}-${{ hashFiles('stack.yaml') }}-${{ hashFiles('xmonad.cabal') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-${{ matrix.resolver }}-${{ hashFiles('stack.yaml') }}-
|
|
${{ runner.os }}-${{ matrix.resolver }}-
|
|
|
|
- name: Build and run tests
|
|
shell: bash
|
|
run: |
|
|
set -ex
|
|
curl -sSL https://get.haskellstack.org/ | sh -s - -f
|
|
sudo apt install -y libasound2 libasound2-dev libxrandr-dev libtinfo-dev
|
|
sudo apt install -y libx11-dev libgmp-dev libxss-dev libxft-dev
|
|
stack test --fast --no-terminal --resolver=${{ matrix.resolver }}
|