Skip to content

Commit a0c53a5

Browse files
committed
Test
1 parent afa113b commit a0c53a5

2 files changed

Lines changed: 13 additions & 198 deletions

File tree

.github/workflows/docker.yaml

Lines changed: 0 additions & 66 deletions
This file was deleted.

.github/workflows/haskell.yml

Lines changed: 13 additions & 132 deletions
Original file line numberDiff line numberDiff line change
@@ -14,147 +14,28 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
os: [ubuntu-latest, macOS-latest, windows-latest]
17-
ghc: ['8.8.4', '8.10.4']
18-
cabal: ['3.2.0.0']
19-
exclude:
20-
# can't build zlib
21-
- os: windows-latest
22-
ghc: '8.10.4'
23-
cabal: '3.2.0.0'
17+
ghc: ['8.10.7']
18+
cabal: ['3.4.0.0']
2419

2520
steps:
2621
- uses: actions/checkout@v2
27-
- uses: haskell/actions/setup@v1.2
22+
23+
- uses: haskell/actions/setup@v1.2.6
2824
with:
2925
ghc-version: ${{ matrix.ghc }}
3026
cabal-version: ${{ matrix.cabal }}
3127

32-
- name: create ~/.local/bin
33-
run: mkdir -p "$HOME/.local/bin"
34-
shell: bash
35-
36-
- name: Add ~/.local/bin to PATH
37-
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
38-
shell: bash
39-
40-
- name: Cache
41-
uses: actions/cache@v1
42-
env:
43-
cache-name: cache-cabal
44-
with:
45-
path: ~/.cabal
46-
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.cabal }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
47-
restore-keys: |
48-
${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.cabal }}-build-${{ env.cache-name }}-
49-
${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.cabal }}-build-
50-
${{ runner.os }}-${{ matrix.ghc }}-
51-
${{ runner.os }}-
52-
53-
- name: Update cabal index
54-
run: cabal update
55-
shell: bash
56-
57-
- name: Install shelltestrunner
58-
run: cabal install --installdir="$HOME/.local/bin" --install-method=copy --overwrite-policy=always -f _regex-posix-clib shelltestrunner
59-
shell: bash
60-
61-
- name: Install dependencies
62-
run: cabal build --only-dependencies --enable-tests --enable-benchmarks
63-
shell: bash
64-
65-
- name: Build
66-
run: cabal build --enable-tests --enable-benchmarks all
67-
shell: bash
68-
69-
- name: Install
70-
run: cabal install --installdir="$HOME/.local/bin" --install-method=copy --overwrite-policy=always
71-
shell: bash
72-
73-
- name: Run tests
74-
run: cabal test all
75-
shell: bash
76-
77-
- name: Build haddock
78-
run: cabal haddock lib:stack2cabal
79-
shell: bash
80-
81-
- name: Run shelltest tests
82-
run: cabal exec --offline --verbose=0 sh -- -c 'shelltest shelltest.test'
83-
shell: bash
84-
85-
- if: always()
86-
uses: actions/upload-artifact@v2
87-
with:
88-
name: plan.json
89-
path: ./dist-newstyle/cache/plan.json
90-
91-
build-stack:
92-
name: Stack ${{ matrix.stack }} ${{ matrix.os }}
93-
runs-on: ${{ matrix.os }}
94-
strategy:
95-
fail-fast: false
96-
matrix:
97-
os: [ubuntu-latest, macOS-latest, windows-latest]
98-
stack: ['latest']
99-
100-
steps:
101-
- uses: actions/checkout@v2
102-
- uses: haskell/actions/setup@v1.2
103-
with:
104-
enable-stack: true
105-
stack-no-global: true
106-
stack-version: ${{ matrix.stack }}
107-
108-
- name: Add ~/.local/bin to PATH
109-
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
110-
shell: bash
111-
112-
- name: Cache
113-
uses: actions/cache@v1
114-
env:
115-
cache-name: stack-cabal
116-
with:
117-
path: ~/.stack
118-
key: ${{ runner.os }}-${{ matrix.stack }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/stack.yaml') }}
119-
restore-keys: |
120-
${{ runner.os }}-build-${{ env.cache-name }}-
121-
${{ runner.os }}-build-
122-
${{ runner.os }}-
123-
124-
- name: Install shelltestrunner
125-
run: stack --local-bin-path=$HOME/.local/bin install --flag regex-posix:_regex-posix-clib shelltestrunner
126-
shell: bash
127-
128-
- name: Install dependencies
28+
- if: matrix.os == 'windows-latest'
29+
name: Windows
12930
run: |
130-
stack install --dependencies-only --flag zlib:bundled-c-zlib
131-
shell: bash
132-
133-
- name: Build
134-
run: stack build --flag zlib:bundled-c-zlib
135-
shell: bash
31+
ls 'C:\\ghcup\\bin'
32+
ls 'C:\Users\runneradmin\AppData\Roaming\cabal\config'
33+
cabal user-config diff
34+
echo $env:GHCUP_MSYS2
35+
echo $env:PATH
36+
echo $env:GHCUP_INSTALL_BASE_PREFIX
37+
echo "lol"
13638
137-
- name: Install
138-
run: stack install --flag zlib:bundled-c-zlib
139-
shell: bash
140-
141-
- if: matrix.os == 'ubuntu-latest'
142-
name: Install git
143-
run: sudo apt-get install git
144-
145-
- if: matrix.os == 'macOS-latest'
146-
name: Install git
147-
run: brew install git
148-
149-
- if: matrix.os == 'windows-latest'
150-
name: Install git
151-
run: choco install git
15239
153-
- name: Run tests
154-
run: stack test
155-
shell: bash
15640
157-
- name: Run shelltest tests
158-
run: stack exec sh -- -c 'shelltest shelltest.test'
159-
shell: bash
16041

0 commit comments

Comments
 (0)