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:
Tomas Janousek
2021-01-25 22:18:40 +00:00
parent 55747ecced
commit d4d78abc4a

View File

@@ -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: |
set -ex
sudo apt install -y \
libasound2-dev \
libgmp-dev \
libtinfo-dev \
libx11-dev \
libxft-dev \
libxrandr-dev \
libxss-dev \
#
- name: Build and run tests
run: | run: |
set -ex 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 --stack-yaml=${{ matrix.yaml }} test --fast --no-terminal --resolver=${{ matrix.resolver }} stack --stack-yaml=${{ matrix.yaml }} test --fast --no-terminal --resolver=${{ matrix.resolver }}