File tree Expand file tree Collapse file tree 2 files changed +53
-18
lines changed Expand file tree Collapse file tree 2 files changed +53
-18
lines changed Original file line number Diff line number Diff line change
1
+ name : Image
2
+
3
+ on :
4
+ push :
5
+ workflow_dispatch :
6
+ schedule :
7
+ - cron : ' 0 0 * * 5'
8
+
9
+ jobs :
10
+
11
+ BuildAndPush :
12
+ runs-on : ubuntu-latest
13
+ permissions :
14
+ packages : write
15
+ env :
16
+ IMAGE : ghcr.io/f4pga/prjxray/ci
17
+
18
+ steps :
19
+
20
+ - name : Build image prjxray/ci
21
+ run : |
22
+ docker build -t $IMAGE - <<EOF
23
+ FROM ubuntu:bionic
24
+ RUN apt-get update -qq \
25
+ && DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
26
+ bash \
27
+ bison \
28
+ build-essential \
29
+ ca-certificates \
30
+ clang-format \
31
+ cmake \
32
+ psmisc \
33
+ colordiff \
34
+ coreutils \
35
+ git \
36
+ flex \
37
+ python3 \
38
+ python3-dev \
39
+ python3-venv \
40
+ xsltproc \
41
+ libtinfo5 \
42
+ && apt-get autoclean && apt-get clean && apt-get -y autoremove \
43
+ && update-ca-certificates \
44
+ && rm -rf /var/lib/apt/lists/*
45
+
46
+ - uses : pyTooling/Actions/with-post-step@r0
47
+ with :
48
+ main : |
49
+ echo '${{ github.token }}' | docker login ghcr.io -u gha --password-stdin
50
+ docker push $IMAGE
51
+ post : docker logout ghcr.io
Original file line number Diff line number Diff line change 7
7
8
8
9
9
BuildDatabase :
10
- container : ubuntu:focal
11
-
12
10
runs-on : [self-hosted, Linux, X64]
11
+ container : ' ghcr.io/f4pga/prjxray/ci'
13
12
14
13
strategy :
15
14
fail-fast : false
27
26
with :
28
27
submodules : recursive
29
28
30
- - name : Install
31
- run : |
32
- DEBIAN_FRONTEND=noninteractive apt update -qq
33
- DEBIAN_FRONTEND=noninteractive apt install -qq -y \
34
- bash bison build-essential ca-certificates clang-format cmake psmisc \
35
- colordiff coreutils git flex python3 python3-dev python3-venv xsltproc libtinfo5
36
-
37
29
- name : Build
38
30
run : make build --output-sync=target --warn-undefined-variables -j$(nproc)
39
31
61
53
62
54
63
55
Tests :
64
- container : ubuntu:focal
65
-
66
56
runs-on : [self-hosted, Linux, X64]
57
+ container : ' ghcr.io/f4pga/prjxray/ci'
67
58
68
59
env :
69
60
ALLOW_ROOT : true
74
65
with :
75
66
submodules : recursive
76
67
77
- - name : Install
78
- run : |
79
- DEBIAN_FRONTEND=noninteractive apt update -qq
80
- DEBIAN_FRONTEND=noninteractive apt install -qq -y \
81
- bash bison build-essential ca-certificates clang-format cmake psmisc \
82
- colordiff coreutils git flex python3 python3-dev python3-venv xsltproc libtinfo5
83
-
84
68
- name : Build
85
69
run : make build --output-sync=target --warn-undefined-variables -j$(nproc)
86
70
You can’t perform that action at this time.
0 commit comments