Skip to content
Permalink
Browse files

cache Docker build in MingW workflow (#41736)

  • Loading branch information
3nids committed Feb 22, 2021
1 parent 002e634 commit 516e7ab15ba73489a5f830882804fd9bb7a6fdda
Showing with 13 additions and 2 deletions.
  1. +13 −2 .github/workflows/{minw64.yml → mingw64.yml}
@@ -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
@@ -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: |

0 comments on commit 516e7ab

Please sign in to comment.