From c9e40da973030a2e1f89f04fd1697ffd59f1b91e Mon Sep 17 00:00:00 2001 From: Didactic Drunk <1479616+didactic-drunk@users.noreply.github.com> Date: Wed, 2 Jun 2021 20:37:45 -0700 Subject: [PATCH] Cache libsodium build in github actions --- .github/workflows/crystal.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/crystal.yml b/.github/workflows/crystal.yml index fcd4e10..473ca1b 100644 --- a/.github/workflows/crystal.yml +++ b/.github/workflows/crystal.yml @@ -17,16 +17,17 @@ jobs: - uses: actions/checkout@v2 - name: apt update run: apt update - - name: Install lsb_release - run: apt-get install -y lsb-release - - name: lsb_release - run: lsb_release -a - name: Install wget run: apt-get install -y wget - name: setenv DEBUG run: echo "SODIUM_BUILD_DEBUG=1" >> $GITHUB_ENV - name: setenv BUILD_DIR run: echo "LIBSODIUM_BUILD_DIR=$HOME/libsodium" >> $GITHUB_ENV + - name: Cache libsodium + uses: actions/cache@v2 + with: + path: ~/libsodium + key: ${{ runner.os }}-libsodium-${{ hashFiles('build/env.sh') }} - name: Install dependencies run: shards install - name: Run tests