Skip to content

Commit

Permalink
Store in cache after build
Browse files Browse the repository at this point in the history
  • Loading branch information
Yngve S. Kristiansen committed Oct 20, 2023
1 parent f5c320d commit a868309
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/bundle_with_dakota.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,25 @@ jobs:
fetch-depth: 0

- uses: actions/cache@v3
id: cache-package
id: cache-package-check
with:
key: carolina_dist_${{ matrix.os }}_python-${{ matrix.python-version }}_boost-${{ env.BOOST_VERSION }}_dakota-${{ env.DAKOTA_VERSION }}
path: ./carolina_dist

- name: Build Linux Wheel
if: steps.cache-package.outputs.cache-hit != 'true'
if: steps.cache-package-check.outputs.cache-hit != 'true'
uses: docker://quay.io/pypa/manylinux2014_x86_64
with:
entrypoint: /bin/bash
args: '-c "sh dakota_manylinux_install_files/build_wheels_gha.sh"'

- uses: actions/cache/save@v3
if: steps.cache-package.outputs.cache-hit != 'true'
id: cache-package-store
with:
key: carolina_dist_${{ matrix.os }}_python-${{ matrix.python-version }}_boost-${{ env.BOOST_VERSION }}_dakota-${{ env.DAKOTA_VERSION }}
path: ./carolina_dist

- name: Get Carolina wheel from cache
uses: actions/cache/restore@v3
id: restore-cached-package
Expand Down

0 comments on commit a868309

Please sign in to comment.