Skip to content

Commit

Permalink
cache Docker build in MingW workflow (#41736)
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Feb 22, 2021
1 parent 002e634 commit 516e7ab
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/minw64.yml → .github/workflows/mingw64.yml
Expand Up @@ -34,7 +34,16 @@ jobs:
- uses: actions/checkout@v2

- name: Build Docker Container with Build Environment
run: docker build -t qgis3-mingw-buildenv -f ms-windows/mingw/qgis3-build-deps-mingw.dockerfile .
id: docker-build
uses: whoan/docker-build-with-cache-action@v5
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
image_name: qgis3-mingw-buildenv
dockerfile: ms-windows/mingw/qgis3-build-deps-mingw.dockerfile
push_git_tag: true
push_image_and_stages: on:push

- name: Prepare build cache for pull request
uses: pat-s/always-upload-cache@v2.1.3
Expand Down Expand Up @@ -68,8 +77,10 @@ jobs:
--env CCACHE_DIR=/QGIS/.ccache \
-w /QGIS \
-v ${GITHUB_WORKSPACE}:/QGIS \
qgis3-mingw-buildenv \
${DOCKER_IMAGE} \
ms-windows/mingw/build.sh x86_64 nodebug 4
env:
DOCKER_IMAGE: ${{ steps.docker-build.outputs.FULL_IMAGE_NAME }}

- name: Create Portable zip
run: |
Expand Down

0 comments on commit 516e7ab

Please sign in to comment.