ops: Use cached docker image
Some checks failed
ci / docker-build (pull_request) Successful in 32s
ci / build-and-test (pull_request) Failing after 32s

This commit is contained in:
Brock Allen
2024-02-03 01:02:37 +00:00
parent 0bc03b3ed3
commit ac245b1ec1

View File

@@ -67,16 +67,11 @@ jobs:
with:
path: /tmp/docker
key: ${{ runner.os }}-docker-${{ steps.dockerfile-hash.outputs.hash }}
-
name: Load image
run: |
docker load --input /tmp/docker/${{ runner.os }}-builder-image.tar
docker image ls -a
-
name: Build library
uses: https://github.com/addnab/docker-run-action@v3
with:
image: cproject-builder:latest
image: /tmp/docker/${{ runner.os }}-builder-image.tar
options: --volumes-from ${{ env.JOB_CONTAINER_NAME }}
run: |
/bin/bash -c "cd ${{ github.workspace }}; rm -rf build; cmake -B build; cmake --build build"