mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-31 12:11:52 -07:00
ci: Minor cleanup
* split into buildenv deps and stack build * make the deps list more git-friendly * use stack from github environment (I've seen the curl fail intermittently) * indent consistency
This commit is contained in:
30
.github/workflows/tests.yml
vendored
30
.github/workflows/tests.yml
vendored
@@ -1,10 +1,10 @@
|
|||||||
name: Tests
|
name: Tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -36,11 +36,19 @@ jobs:
|
|||||||
${{ runner.os }}-${{ matrix.resolver }}-${{ hashFiles(matrix.yaml) }}-
|
${{ runner.os }}-${{ matrix.resolver }}-${{ hashFiles(matrix.yaml) }}-
|
||||||
${{ runner.os }}-${{ matrix.resolver }}-
|
${{ runner.os }}-${{ matrix.resolver }}-
|
||||||
|
|
||||||
- name: Build and run tests
|
- name: Install dependencies
|
||||||
shell: bash
|
|
||||||
run: |
|
run: |
|
||||||
set -ex
|
set -ex
|
||||||
curl -sSL https://get.haskellstack.org/ | sh -s - -f
|
sudo apt install -y \
|
||||||
sudo apt install -y libasound2 libasound2-dev libxrandr-dev libtinfo-dev
|
libasound2-dev \
|
||||||
sudo apt install -y libx11-dev libgmp-dev libxss-dev libxft-dev
|
libgmp-dev \
|
||||||
stack --stack-yaml=${{ matrix.yaml }} test --fast --no-terminal --resolver=${{ matrix.resolver }}
|
libtinfo-dev \
|
||||||
|
libx11-dev \
|
||||||
|
libxft-dev \
|
||||||
|
libxrandr-dev \
|
||||||
|
libxss-dev \
|
||||||
|
#
|
||||||
|
- name: Build and run tests
|
||||||
|
run: |
|
||||||
|
set -ex
|
||||||
|
stack --stack-yaml=${{ matrix.yaml }} test --fast --no-terminal --resolver=${{ matrix.resolver }}
|
||||||
|
Reference in New Issue
Block a user