-
Notifications
You must be signed in to change notification settings - Fork 10
67 lines (59 loc) · 2.28 KB
/
test.yml
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
name: 'test'
on:
push:
paths:
- 'run.sh'
- '.github/workflows/test.yml'
workflow_dispatch:
schedule:
- cron: '0 0 * * 5'
jobs:
build:
strategy:
fail-fast: false
matrix:
include: [
{ distro: buster, backend: mcode , args: "" },
{ distro: bullseye, backend: mcode , args: "" },
{ distro: bullseye, backend: mcode, args: "--gplcompat" },
{ distro: bookworm, backend: mcode, args: "--gplcompat" },
{ distro: ubuntu20, backend: mcode , args: "" },
{ distro: ubuntu22, backend: mcode , args: "" },
{ distro: fedora37, backend: mcode , args: "" },
{ distro: fedora38, backend: mcode , args: "" },
{ distro: bullseye, backend: llvm-11, args: "" },
{ distro: ubuntu20, backend: llvm-10, args: "" },
{ distro: ubuntu22, backend: llvm-11, args: "" },
{ distro: fedora37, backend: llvm, args: "" },
{ distro: fedora38, backend: llvm, args: "" },
{ distro: bullseye, backend: gcc-9.4.0, args: "" },
{ distro: fedora37, backend: gcc-10.3.0, args: "" },
{ distro: fedora38, backend: gcc-11.3.0, args: "" },
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Clone ghdl
run: git clone https://github.com/ghdl/ghdl
- name: Build 'ghdl' and 'pkg' images
run: ./run.sh -b $TARGS
env:
TASK: ${{ matrix.distro }}+${{ matrix.backend }}
TARGS: ${{ matrix.args }}
- name: 'Build ghdl/debug'
# We need to use 'buster' because 'gnat-gps' is not available on 'bullseye' or 'bookworm'
if: matrix.backend == 'mcode' && matrix.distro == 'buster'
run: |
docker build -t ghdl/debug - <<-EOF
FROM ghdl/debug:base
COPY --from=ghdl/pkg:buster-mcode / /ghdl/usr/local/
EOF
- name: Deploy to DockerHub
if: github.event_name != 'pull_request' && github.repository == 'ghdl/docker'
uses: pyTooling/Actions/with-post-step@r0
with:
main: |
# Release
echo '${{ secrets.DOCKER_PASS }}' | docker login docker.io -u '${{ secrets.DOCKER_USER }}' --password-stdin
./run.sh ""
post: docker logout docker.io