4242 required : false
4343 default : ' script'
4444 type : string
45- apt_packages :
46- description : ' Extra apt packages needed to build the product'
47- required : false
48- default : ' '
49- type : string
50- container :
51- description : ' Container image to build in (e.g. ubuntu:24.04, debian:13)'
52- required : false
53- default : ' ubuntu:24.04'
54- type : string
5545
5646jobs :
5747 # Build wolfSSL once and publish the install dir. Both compile legs (head,
@@ -61,38 +51,19 @@ jobs:
6151 name : Build wolfSSL (${{ inputs.product }})
6252 if : ${{ (github.repository_owner == 'wolfssl') && (github.event_name != 'pull_request' || github.event.pull_request.draft == false) }}
6353 runs-on : ubuntu-24.04
64- container :
65- image : ${{ inputs.container }}
6654 timeout-minutes : 20
6755 steps :
68- # No git yet, so this is a REST download, only to get apt-install.sh.
69- - name : Fetch the apt script
70- uses : actions/checkout@v5
71- with :
72- path : apt-script
73-
74- # Minimal-image containers ship without git/toolchain; install them
75- # before checkout. Product-specific extras come from apt_packages.
76- - name : Install build tools
77- run : |
78- # Two attempts fit inside this job's timeout-minutes.
79- sh apt-script/.github/actions/install-apt-deps/apt-install.sh \
80- --tries 2 --update-timeout 60 --no-install-recommends \
81- build-essential autoconf automake libtool pkg-config \
82- git ca-certificates ${{ inputs.apt_packages }}
83-
84- # Building only needs the commit under test, not history. The break check
85- # that needs history runs in the compile job, not here.
8656 - name : Checkout wolfSSL
8757 uses : actions/checkout@v5
8858 with :
8959 fetch-depth : 1
9060 fetch-tags : false
9161
92- # Container job: the bind-mounted workspace is owned by a different uid,
93- # so mark it safe or git refuses to operate on it ("dubious ownership").
94- - name : Mark workspace safe for git
95- run : git config --global --add safe.directory "$GITHUB_WORKSPACE"
62+ - name : Install build tools
63+ uses : ./.github/actions/install-apt-deps
64+ with :
65+ packages : build-essential autoconf automake libtool
66+ ghcr-debs-tag : ubuntu-24.04-minimal
9667
9768 # Build wolfSSL and install to a local dir. The configure flags go through
9869 # an env var (not inline ${{ }}) so a quoted CFLAGS/C_EXTRA_FLAGS group
@@ -127,48 +98,39 @@ jobs:
12798 name : Compile ${{ inputs.product }} (${{ matrix.ref_mode }})
12899 needs : build-wolfssl
129100 runs-on : ubuntu-24.04
130- container :
131- image : ${{ inputs.container }}
132101 timeout-minutes : 25
133102 strategy :
134103 fail-fast : false
135104 matrix :
136105 ref_mode : [ head, latest ]
137106 steps :
138- # No git yet, so this is a REST download, only to get apt-install.sh.
139- - name : Fetch the apt script
107+ - name : Checkout wolfSSL
140108 uses : actions/checkout@v5
141109 with :
142- path : apt-script
110+ fetch-depth : 1
111+ fetch-tags : false
143112
144- # Minimal-image containers ship without git/toolchain; install them
145- # before checkout. Product-specific extras come from apt_packages.
146113 - name : Install build tools
147- run : |
148- # Two attempts fit inside this job's timeout-minutes.
149- sh apt-script/.github/actions/install-apt-deps/apt-install.sh \
150- --tries 2 --update-timeout 60 --no-install-recommends \
151- build-essential autoconf automake libtool pkg-config \
152- git ca-certificates ${{ inputs.apt_packages }}
114+ if : inputs.product != 'wolfip' && inputs.product != 'wolfprovider'
115+ uses : ./.github/actions/install-apt-deps
116+ with :
117+ packages : build-essential autoconf automake libtool
118+ ghcr-debs-tag : ubuntu-24.04-minimal
153119
154- # This job does not build wolfSSL, but the latest leg still checks out
155- # wolfSSL history because check-break.sh scans commit messages here. The
156- # head leg never waives a break, so a depth-1 checkout is enough for it.
157- - name : Checkout wolfSSL
158- uses : actions/checkout@v5
120+ # wolfIP uses Check for the unit suite and xxd for the test certificates.
121+ - name : Install wolfIP build and test tools
122+ if : inputs.product == 'wolfip'
123+ uses : ./.github/actions/install-apt-deps
159124 with :
160- fetch-depth : 1
161- fetch-tags : false
125+ packages : build-essential autoconf automake libtool check xxd
126+ ghcr-debs-tag : ubuntu-24.04-full
162127
163- # This is a container job: the workspace is a host bind-mount owned by a
164- # different uid than the (root) container user, so git refuses to operate
165- # on it ("detected dubious ownership") unless it is marked safe. actions/
166- # checkout marks it safe only under its own *temporary* HOME, which our
167- # run: steps (HOME=/github/home) do not inherit, so check-break.sh's
168- # `git tag`/`git log` would fail and, with stderr hidden, look like "no
169- # break declared". Mark it safe under this HOME for all following steps.
170- - name : Mark workspace safe for git
171- run : git config --global --add safe.directory "$GITHUB_WORKSPACE"
128+ - name : Install wolfProvider build tools and OpenSSL headers
129+ if : inputs.product == 'wolfprovider'
130+ uses : ./.github/actions/install-apt-deps
131+ with :
132+ packages : build-essential autoconf automake libtool libssl-dev
133+ ghcr-debs-tag : ubuntu-24.04-full
172134
173135 # The `latest` leg is the only one that reads wolfSSL history: it needs the
174136 # commit messages check-break.sh scans (the last two release cycles) plus
0 commit comments