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 77
88
99 BuildDatabase :
10- container : ubuntu:focal
11-
1210 runs-on : [self-hosted, Linux, X64]
11+ container : ' ghcr.io/f4pga/prjxray/ci'
1312
1413 strategy :
1514 fail-fast : false
2726 with :
2827 submodules : recursive
2928
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-
3729 - name : Build
3830 run : make build --output-sync=target --warn-undefined-variables -j$(nproc)
3931
6153
6254
6355 Tests :
64- container : ubuntu:focal
65-
6656 runs-on : [self-hosted, Linux, X64]
57+ container : ' ghcr.io/f4pga/prjxray/ci'
6758
6859 env :
6960 ALLOW_ROOT : true
7465 with :
7566 submodules : recursive
7667
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-
8468 - name : Build
8569 run : make build --output-sync=target --warn-undefined-variables -j$(nproc)
8670
You can’t perform that action at this time.
0 commit comments