@@ -3,11 +3,51 @@ name: Pipeline
3
3
on :
4
4
workflow_call :
5
5
6
+ env :
7
+ IMAGE : ghcr.io/f4pga/prjxray/ci
8
+
6
9
jobs :
7
10
8
11
12
+ Dependencies :
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+
17
+ - run : |
18
+ docker build -t $IMAGE - <<EOF
19
+ FROM ubuntu:bionic
20
+ RUN apt-get update -qq \
21
+ && DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
22
+ bash \
23
+ bison \
24
+ build-essential \
25
+ ca-certificates \
26
+ clang-format \
27
+ cmake \
28
+ psmisc \
29
+ colordiff \
30
+ coreutils \
31
+ git \
32
+ flex \
33
+ python3 \
34
+ python3-dev \
35
+ python3-venv \
36
+ xsltproc \
37
+ && apt-get autoclean && apt-get clean && apt-get -y autoremove \
38
+ && update-ca-certificates \
39
+ && rm -rf /var/lib/apt/lists/*
40
+
41
+ - uses : pyTooling/Actions/with-post-step@r0
42
+ with :
43
+ main : |
44
+ echo '${{ github.token }}' | docker login ghcr.io -u gha --password-stdin
45
+ docker push $IMAGE
46
+ post : docker logout ghcr.io
47
+
48
+
9
49
BuildDatabase :
10
- container : ubuntu:bionic
50
+ container : $IMAGE
11
51
12
52
runs-on : [self-hosted, Linux, X64]
13
53
27
67
with :
28
68
submodules : recursive
29
69
30
- - name : Install
31
- run : |
32
- apt update
33
- apt install -y \
34
- bash bison build-essential ca-certificates clang-format cmake psmisc \
35
- colordiff coreutils git flex python3 python3-dev python3-venv xsltproc
36
-
37
70
- name : Build
38
71
run : make build --output-sync=target --warn-undefined-variables -j$(nproc)
39
72
61
94
62
95
63
96
Tests :
64
- container : ubuntu:bionic
97
+ container : $IMAGE
65
98
66
99
runs-on : [self-hosted, Linux, X64]
67
100
@@ -74,13 +107,6 @@ jobs:
74
107
with :
75
108
submodules : recursive
76
109
77
- - name : Install
78
- run : |
79
- apt update
80
- apt install -y \
81
- bash bison build-essential ca-certificates clang-format cmake psmisc \
82
- colordiff coreutils git flex python3 python3-dev python3-venv xsltproc
83
-
84
110
- name : Build
85
111
run : make build --output-sync=target --warn-undefined-variables -j$(nproc)
86
112
0 commit comments