Skip to content

Commit 5620997

Browse files
committed
always build CUPS 3 from source instead of caching it
1 parent 43d5dce commit 5620997

1 file changed

Lines changed: 4 additions & 14 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -81,20 +81,10 @@ jobs:
8181
8282
# CUPS 3
8383
#
84-
# CUPS 3 isn't packaged by Ubuntu, so build it from source.
85-
# Cache the installed copy so we don't rebuild it every run.
84+
# CUPS 3 isn't packaged by Ubuntu, so build it from source every run.
8685
#
87-
- name: Cache CUPS 3
88-
if: matrix.feature == 'force-cups3'
89-
id: cache-libcups3
90-
uses: actions/cache@v4
91-
with:
92-
path: ~/.local/libcups3
93-
key: libcups3-${{ env.LIBCUPS3_VERSION }}-${{ runner.os }}
94-
95-
9686
- name: Install CUPS 3 dependencies
97-
if: matrix.feature == 'force-cups3' && steps.cache-libcups3.outputs.cache-hit != 'true'
87+
if: matrix.feature == 'force-cups3'
9888
run: |
9989
sudo apt-get install -y \
10090
build-essential \
@@ -107,7 +97,7 @@ jobs:
10797
10898
10999
- name: Build CUPS 3
110-
if: matrix.feature == 'force-cups3' && steps.cache-libcups3.outputs.cache-hit != 'true'
100+
if: matrix.feature == 'force-cups3'
111101
run: |
112102
git clone \
113103
--depth 1 \
@@ -126,7 +116,7 @@ jobs:
126116
# CUPS runs ldconfig as part of install, so this needs sudo.
127117
sudo make install
128118
129-
# Give the runner user ownership of the cached files.
119+
# sudo make install left these owned by root.
130120
sudo chown -R "$(id -u):$(id -g)" "$HOME/.local/libcups3"
131121
132122

0 commit comments

Comments
 (0)