forked from haskell/docker-haskell
-
Notifications
You must be signed in to change notification settings - Fork 0
115 lines (110 loc) · 3.62 KB
/
debian.yml
File metadata and controls
115 lines (110 loc) · 3.62 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: Validate Debian
on:
pull_request:
branches:
- master
paths:
- '**/bookworm/Dockerfile'
- '**/bullseye/Dockerfile'
- '**/buster/Dockerfile'
- '**/slim-bookworm/Dockerfile'
- '**/slim-bullseye/Dockerfile'
- '**/slim-buster/Dockerfile'
- '.github/workflows/debian.yml'
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
concurrency:
group: ${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
build-smoke-test:
timeout-minutes: 30
runs-on: ubuntu-24.04
name: ${{ matrix.ghc }}-${{ matrix.deb }}
strategy:
fail-fast: false
matrix:
ghc: ['9.12.2', '9.10.2', '9.8.4', '9.6.7']
deb: ['bullseye', 'slim-bullseye']
include:
- ghc: '9.12.2'
ghc_minor: '9.12'
deb: 'bookworm'
- ghc: '9.12.2'
ghc_minor: '9.12'
deb: 'slim-bookworm'
- ghc: '9.12.2'
ghc_minor: '9.12'
deb: 'bullseye'
- ghc: '9.12.2'
ghc_minor: '9.12'
deb: 'slim-bullseye'
- ghc: '9.10.2'
ghc_minor: '9.10'
- ghc: '9.8.4'
ghc_minor: '9.8'
- ghc: '9.6.7'
ghc_minor: '9.6'
steps:
- uses: actions/checkout@v4
- name: build + smoke test [${{ matrix.ghc }}]
uses: nick-invision/retry@v3.0.0
with:
timeout_minutes: 8
max_attempts: 3
command: |
docker build --pull \
-t haskell:${{ matrix.ghc }}-${{ matrix.deb }} \
${{ matrix.ghc_minor }}/${{ matrix.deb }} \
--build-arg "BUILDKIT_DOCKERFILE_CHECK=skip=SecretsUsedInArgOrEnv;error=true"
- uses: actions/checkout@v4
with:
repository: docker-library/official-images
path: official-images
- name: run official-images tests
run: ./official-images/test/run.sh haskell:${{ matrix.ghc }}-${{ matrix.deb }}
arm64-tests:
timeout-minutes: 60
runs-on: ubuntu-24.04-arm
name: arm64-${{ matrix.ghc }}-${{ matrix.deb }}
strategy:
fail-fast: false
matrix:
ghc: ['9.6.7', '9.8.4', '9.10.2', '9.12.2']
# native arm runner; still avoid slim variants here
deb: ['bullseye']
include:
# bookworm (debian 12)
- ghc: '9.12.2'
ghc_minor: '9.12'
deb: 'bookworm'
# bullseye (debian 11)
- ghc: '9.10.2'
ghc_minor: '9.10'
- ghc: '9.8.4'
ghc_minor: '9.8'
- ghc: '9.6.7'
ghc_minor: '9.6'
exclude:
- ghc: '9.12.2'
deb: 'bullseye'
steps:
- uses: actions/checkout@v4
- name: docker build and test [arm64 ${{ matrix.ghc }}]
run: |
docker build --pull --progress=plain \
-t haskell:${{ matrix.ghc }}-${{ matrix.deb }} \
${{ matrix.ghc_minor }}/${{ matrix.deb }} \
--build-arg "BUILDKIT_DOCKERFILE_CHECK=skip=SecretsUsedInArgOrEnv;error=true"
echo 'testing..'
docker run \
-t haskell:${{ matrix.ghc }}-${{ matrix.deb }} \
bash -c "cabal update && cabal install --lib primitive"
docker run \
-t haskell:${{ matrix.ghc }}-${{ matrix.deb }} \
bash -c "echo | ghci"
- uses: actions/checkout@v4
with:
repository: docker-library/official-images
path: official-images
- name: run official-images tests
run: ./official-images/test/run.sh haskell:${{ matrix.ghc }}-${{ matrix.deb }}