Skip to content

Commit a0f312b

Browse files
committed
More testing in container
1 parent 8e52209 commit a0f312b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/test-ghcup.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,14 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v4
2222

23+
- run: which ghcup || true
24+
- run: ghcup --numeric-version || true
25+
2326
- uses: ./
2427

28+
- run: which ghcup
29+
- run: ghcup --numeric-version
30+
2531
- run: ghcup config
2632
- run: ghcup debug-info
2733
- run: ghcup tool-requirements
@@ -50,6 +56,36 @@ jobs:
5056
- if: runner.os == 'Windows'
5157
run: ghcup run -m sh -- -c 'pacman --version'
5258

59+
container:
60+
runs-on: ubuntu-20.04
61+
container:
62+
image: debian:12
63+
steps:
64+
- run: |
65+
apt-get update
66+
apt-get install -y libnuma-dev zlib1g-dev libgmp-dev libgmp10 libssl-dev liblzma-dev libbz2-dev git wget lsb-release software-properties-common gnupg2 apt-transport-https gcc autoconf automake build-essential curl ghc gzip libffi-dev libncurses-dev libncurses5 libtinfo5 patchelf bash
67+
68+
- uses: actions/checkout@v4
69+
70+
- uses: ./
71+
72+
- run: which ghcup
73+
- run: ghcup config
74+
- run: ghcup debug-info
75+
- run: ghcup tool-requirements
76+
- run: ghcup list
77+
78+
- run: ghcup install ghc latest --set
79+
- run: ghcup whereis ghc latest
80+
- run: which ghc
81+
- run: ghc --version
82+
83+
- run: ghcup install cabal latest --set
84+
- run: ghcup whereis cabal latest
85+
- run: which cabal
86+
- run: cabal --version
87+
88+
5389
vanilla-channel:
5490
strategy:
5591
matrix:

0 commit comments

Comments
 (0)