Skip to content

Commit

Permalink
Merge pull request #672 from lukemartinlogan/dev
Browse files Browse the repository at this point in the history
Use cache action for deps docker
  • Loading branch information
lukemartinlogan authored Feb 8, 2024
2 parents ec7cb5b + f2e5f5a commit 8043bf7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/build_and_push_docker_images.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Build and Push Docker Images
on:
push:
branches:
- master
- main
- dev
workflow_dispatch:
branches:
- master
Expand All @@ -16,6 +20,12 @@ jobs:
if: ${{ github.ref_type == 'tag' || github.event.inputs.build_docker_images }}
runs-on: ubuntu-20.04
steps:
- name: Cache Hermes deps Docker
uses: actions/cache@v3
id: docker-deps-cache
with:
path: ci/deps/deps.Dockerfile
key: docker-${{ hashFiles('ci/deps/deps.Dockerfile') }}
- name: Checkout
uses: actions/checkout@v3
- name: Login to Docker Hub
Expand All @@ -27,6 +37,7 @@ jobs:
uses: docker/setup-buildx-action@v2
- name: Build and push deps.Dockerfile
uses: docker/build-push-action@v4
if: steps.docker-deps-cache.outputs.cache-hit != 'true'
with:
context: ./
file: ./docker/deps.Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion ci/build_hermes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ ctest -VV

# Run make install unit test
cd /hermes/test/unit/external
mkdir build
mkdir -p build
cd build
cmake ../
make -j4

0 comments on commit 8043bf7

Please sign in to comment.