Skip to content

Commit

Permalink
Remove non-functional cache for build dependencies
Browse files Browse the repository at this point in the history
The cache for build dependencies in the CI was originally added
in 66a6e59 to reduce build time
but it never worked properly so it has been removed.
  • Loading branch information
edewata committed Jul 6, 2022
1 parent b66b299 commit e0c48ba
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 140 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/acme-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,11 @@ jobs:
- name: Clone repository
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: /var/cache/dnf
key: fedora:${{ matrix.os }}-acme-${{ hashFiles('pki.spec') }}

- name: Install dependencies
run: |
# keep packages after installation
echo "keepcache=True" >> /etc/dnf/dnf.conf
dnf install -y dnf-plugins-core rpm-build moby-engine
dnf copr enable -y ${{ needs.init.outputs.repo }}
dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck
# don't cache COPR packages
rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'`
- name: Build PKI packages
run: ./build.sh --with-pkgs=base,server,ca,acme --with-timestamp --work-dir=build rpm
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,11 @@ jobs:
- name: Clone repository
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: /var/cache/dnf
key: fedora:${{ matrix.os }}-ca-${{ hashFiles('pki.spec') }}

- name: Install dependencies
run: |
# keep packages after installation
echo "keepcache=True" >> /etc/dnf/dnf.conf
dnf install -y dnf-plugins-core rpm-build moby-engine
dnf copr enable -y ${{ needs.init.outputs.repo }}
dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck
# don't cache COPR packages
rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'`
- name: Build PKI packages
run: ./build.sh --with-timestamp --work-dir=build rpm
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/ca-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,11 @@ jobs:
- name: Clone repository
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: /var/cache/dnf
key: fedora:${{ matrix.os }}-ca-${{ hashFiles('pki.spec') }}

- name: Install dependencies
run: |
# keep packages after installation
echo "keepcache=True" >> /etc/dnf/dnf.conf
dnf install -y dnf-plugins-core rpm-build moby-engine
dnf copr enable -y ${{ needs.init.outputs.repo }}
dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck
# don't cache COPR packages
rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'`
- name: Build PKI packages
run: ./build.sh --with-pkgs=base,server,ca,tests --with-timestamp --work-dir=build rpm
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/ca-tests2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,11 @@ jobs:
- name: Clone repository
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: /var/cache/dnf
key: fedora:${{ matrix.os }}-ca-${{ hashFiles('pki.spec') }}

- name: Install dependencies
run: |
# keep packages after installation
echo "keepcache=True" >> /etc/dnf/dnf.conf
dnf install -y dnf-plugins-core rpm-build moby-engine
dnf copr enable -y ${{ needs.init.outputs.repo }}
dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck
# don't cache COPR packages
rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'`
- name: Build PKI packages
run: ./build.sh --with-pkgs=base,server,ca,tests --with-timestamp --work-dir=build rpm
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/ipa-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,11 @@ jobs:
- name: Clone the repository
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: /var/cache/dnf
key: fedora:${{ matrix.os }}-ipa-${{ hashFiles('pki.spec') }}

- name: Install dependencies
run: |
# keep packages after installation
echo "keepcache=True" >> /etc/dnf/dnf.conf
dnf install -y dnf-plugins-core rpm-build moby-engine
dnf copr enable -y ${{ needs.init.outputs.repo }}
dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck
# don't cache COPR packages
rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'`
- name: Build PKI packages
run: ./build.sh --with-pkgs=base,server,ca,kra,acme --with-timestamp --work-dir=build rpm
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/kra-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,11 @@ jobs:
- name: Clone repository
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: /var/cache/dnf
key: fedora:${{ matrix.os }}-kra-${{ hashFiles('pki.spec') }}

- name: Install dependencies
run: |
# keep packages after installation
echo "keepcache=True" >> /etc/dnf/dnf.conf
dnf install -y dnf-plugins-core rpm-build moby-engine
dnf copr enable -y ${{ needs.init.outputs.repo }}
dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck
# don't cache COPR packages
rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'`
- name: Build PKI packages
run: ./build.sh --with-pkgs=base,server,ca,kra,tests --with-timestamp --work-dir=build rpm
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/ocsp-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,11 @@ jobs:
- name: Clone repository
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: /var/cache/dnf
key: fedora:${{ matrix.os }}-ocsp-${{ hashFiles('pki.spec') }}

- name: Install dependencies
run: |
# keep packages after installation
echo "keepcache=True" >> /etc/dnf/dnf.conf
dnf install -y dnf-plugins-core rpm-build moby-engine
dnf copr enable -y ${{ needs.init.outputs.repo }}
dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck
# don't cache COPR packages
rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'`
- name: Build PKI packages
run: ./build.sh --with-pkgs=base,server,ca,ocsp,tests --with-timestamp --work-dir=build rpm
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,11 @@ jobs:
- name: Clone repository
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: /var/cache/dnf
key: fedora:${{ matrix.os }}-python-${{ hashFiles('pki.spec') }}

- name: Install dependencies
run: |
# keep packages after installation
echo "keepcache=True" >> /etc/dnf/dnf.conf
dnf install -y dnf-plugins-core rpm-build moby-engine
dnf copr enable -y ${{ needs.init.outputs.repo }}
dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck
# don't cache COPR packages
rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'`
- name: Build PKI packages
run: ./build.sh --with-pkgs=base,server,tests --with-timestamp --work-dir=build rpm
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/qe-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,11 @@ jobs:
- name: Clone repository
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: /var/cache/dnf
key: fedora:${{ matrix.os }}-qe-${{ hashFiles('pki.spec') }}

- name: Install dependencies
run: |
# keep packages after installation
echo "keepcache=True" >> /etc/dnf/dnf.conf
dnf install -y dnf-plugins-core rpm-build moby-engine
dnf copr enable -y ${{ needs.init.outputs.repo }}
dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck
# don't cache COPR packages
rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'`
- name: Build PKI packages
run: ./build.sh --with-timestamp --work-dir=build rpm
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/server-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,11 @@ jobs:
- name: Clone repository
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: /var/cache/dnf
key: fedora:${{ matrix.os }}-server-${{ hashFiles('pki.spec') }}

- name: Install dependencies
run: |
# keep packages after installation
echo "keepcache=True" >> /etc/dnf/dnf.conf
dnf install -y dnf-plugins-core rpm-build moby-engine
dnf copr enable -y ${{ needs.init.outputs.repo }}
dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck
# don't cache COPR packages
rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'`
- name: Build PKI packages
run: ./build.sh --with-pkgs=base,server --with-timestamp --work-dir=build rpm
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/sonarcloud-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,11 @@ jobs:
ref: ${{ github.event.workflow_run.head_branch }}
fetch-depth: 0

- name: Cache dependencies
uses: actions/cache@v2
with:
path: /var/cache/dnf
key: fedora:${{ matrix.os }}-sonar-${{ hashFiles('pki.spec') }}

- name: Install dependencies
run: |
# keep packages after installation
echo "keepcache=True" >> /etc/dnf/dnf.conf
dnf install -y dnf-plugins-core rpm-build moby-engine
dnf copr enable -y ${{ needs.init.outputs.repo }}
dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck
# don't cache COPR packages
rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'`
- name: Build PKI packages
run: ./build.sh --with-timestamp --work-dir=build rpm
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/tks-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,11 @@ jobs:
- name: Clone repository
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: /var/cache/dnf
key: fedora:${{ matrix.os }}-tks-${{ hashFiles('pki.spec') }}

- name: Install dependencies
run: |
# keep packages after installation
echo "keepcache=True" >> /etc/dnf/dnf.conf
dnf install -y dnf-plugins-core rpm-build moby-engine
dnf copr enable -y ${{ needs.init.outputs.repo }}
dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck
# don't cache COPR packages
rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'`
- name: Build PKI packages
run: ./build.sh --with-pkgs=base,server,ca,tks --with-timestamp --work-dir=build rpm
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/tools-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,11 @@ jobs:
- name: Clone repository
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: /var/cache/dnf
key: fedora:${{ matrix.os }}-tools-${{ hashFiles('pki.spec') }}

- name: Install dependencies
run: |
# keep packages after installation
echo "keepcache=True" >> /etc/dnf/dnf.conf
dnf install -y dnf-plugins-core rpm-build moby-engine
dnf copr enable -y ${{ needs.init.outputs.repo }}
dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck
# don't cache COPR packages
rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'`
- name: Build PKI packages
run: ./build.sh --with-pkgs=base,server,tests --with-timestamp --work-dir=build rpm
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/tps-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,11 @@ jobs:
- name: Clone repository
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: /var/cache/dnf
key: fedora:${{ matrix.os }}-tps-${{ hashFiles('pki.spec') }}

- name: Install dependencies
run: |
# keep packages after installation
echo "keepcache=True" >> /etc/dnf/dnf.conf
dnf install -y dnf-plugins-core rpm-build moby-engine
dnf copr enable -y ${{ needs.init.outputs.repo }}
dnf builddep -y --allowerasing --spec ./pki.spec --nogpgcheck
# don't cache COPR packages
rm -f `find /var/cache/dnf -name '*.rpm' | grep '/var/cache/dnf/copr:'`
- name: Build PKI packages
run: ./build.sh --with-pkgs=base,server,ca,kra,tks,tps --with-timestamp --work-dir=build rpm
Expand Down

0 comments on commit e0c48ba

Please sign in to comment.