Skip to content

Commit

Permalink
Cache libressl build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakuje committed May 14, 2024
1 parent 756d49f commit 4fa7825
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/setup-libressl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ if [ ! -d "$V" ]; then
# letsencrypt CA does not seem to be included in CI runner
wget --no-check-certificate https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/$V.tar.gz
tar xzf $V.tar.gz

pushd $V
./configure --prefix=/usr/local
make -j $(nproc)
popd
fi

pushd $V
./configure --prefix=/usr/local
make -j $(nproc)
sudo make install
popd

Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ env:
JAVA_DEPS: |
ant openjdk-8-jdk maven cmake
JCARDSIM: https://github.com/Jakuje/jcardsim.git
LIBRESSL_VERSION: 3.8.1

jobs:
build:
Expand Down Expand Up @@ -514,6 +515,13 @@ jobs:
packages: ${{ env.BASE_DEPS }}
version: apt-latest-base
execute_install_scripts: true
- name: Restore LibreSSL build
uses: actions/cache/restore@v4
id: libressl-cache
with:
path: |
libressl-${{ env.LIBRESSL_VERSION }}/
key: libressl-${{ env.LIBRESSL_VERSION }}
- run: .github/setup-linux.sh libressl
- run: .github/build.sh dist libressl valgrind
- uses: actions/upload-artifact@v3
Expand All @@ -530,6 +538,13 @@ jobs:
with:
path: ./*
key: ${{ runner.os }}-libressl-${{ github.sha }}
- if: ${{ steps.libressl-cache.outputs.cache-hit != 'true' }}
name: Cache LibreSSL build
uses: actions/cache/save@v4
with:
path: |
libressl-${{ env.LIBRESSL_VERSION }}/
key: libressl-${{ env.LIBRESSL_VERSION }}

test-cac-libressl:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 4fa7825

Please sign in to comment.