-
Notifications
You must be signed in to change notification settings - Fork 1
79 lines (65 loc) · 1.87 KB
/
test-ghcup.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Test ghcup action
on:
push:
workflow_dispatch:
jobs:
simple:
strategy:
matrix:
runs-on:
- ubuntu-latest
- macos-latest
- windows-latest
version:
- latest
- '0.1.30.0'
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- uses: ./ghcup
with:
version: ${{ matrix.version }}
- run: ghcup config
- run: ghcup debug-info
- run: ghcup tool-requirements
- run: ghcup list
- run: ghcup install ghc latest --set
- run: ghcup whereis ghc latest
- run: which ghc
- run: ghc --version
- run: ghcup install cabal latest --set
- run: ghcup whereis cabal latest
- run: which cabal
- run: cabal --version
- run: ghcup install stack latest --set
- run: ghcup whereis stack latest
- run: which stack
- run: stack --version
- run: ghcup install hls latest --set
- run: ghcup whereis hls latest
- run: which haskell-language-server-wrapper
- run: haskell-language-server-wrapper --version
- run: ghcup run -m bash -- -c 'echo success'
vanilla_channel:
strategy:
matrix:
runs-on:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- uses: ./ghcup
with:
release-channels: |
https://raw.githubusercontent.com/haskell/ghcup-metadata/refs/heads/master/ghcup-vanilla-0.0.8.yaml
- run: ghcup config
- run: ghcup debug-info
- run: ghcup tool-requirements
- run: ghcup list
- run: ghcup install ghc latest --set
- run: ghcup whereis ghc latest
- run: which ghc
- run: ghc --version
- run: ghcup run -m bash -- -c 'echo success'