From 141a4ba61f78405923d2e59e4278ab1efde8cf66 Mon Sep 17 00:00:00 2001 From: Kyle Shores Date: Mon, 16 Oct 2023 09:29:05 -0500 Subject: [PATCH] adding package caching to maybe decrease build times for multiplatforms --- .github/workflows/publish-package.yml | 26 ++++++++++++++++-------- include/micm/configure/solver_config.hpp | 5 +++++ 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index af6e219fe..a33620102 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -2,7 +2,7 @@ name: Create and publish a Docker image on: push: - branches: ['release'] + branches: ['release', 'multiplatform_again'] tags: - '*' @@ -20,9 +20,13 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 - with: - submodules: recursive + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to Container Registry uses: docker/login-action@v2 with: @@ -30,20 +34,24 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Extract metadata (tags, labels) for Docker + - name: Docker meta id: meta - uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + + - name: inject go-build-cache into docker + uses: reproducible-containers/buildkit-cache-dance@v2.1.2 + with: + cache-source: go-build-cache - name: Build and push Docker image uses: docker/build-push-action@v5 with: context: . - platforms: linux/amd64 + cache-from: type=gha + cache-to: type=gha,mode=max + platforms: linux/amd64,linux/arm64 file: docker/Dockerfile.publish push: true tags: ${{ steps.meta.outputs.tags }} diff --git a/include/micm/configure/solver_config.hpp b/include/micm/configure/solver_config.hpp index ea004b40e..c435f4b4f 100644 --- a/include/micm/configure/solver_config.hpp +++ b/include/micm/configure/solver_config.hpp @@ -780,6 +780,11 @@ namespace micm return ConfigParseStatus::Success; } + + bool has_non_standard_keys(const std::vector keys, const json& object) { + + return false; + } }; /// @brief Public interface to read and parse config