Skip to content

Commit

Permalink
adding package caching to maybe decrease build times for multiplatforms
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Oct 16, 2023
1 parent 5bf0753 commit 141a4ba
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Create and publish a Docker image

on:
push:
branches: ['release']
branches: ['release', 'multiplatform_again']
tags:
- '*'

Expand All @@ -20,30 +20,38 @@ 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:
registry: ${{ env.REGISTRY }}
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/[email protected]
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 }}
Expand Down
5 changes: 5 additions & 0 deletions include/micm/configure/solver_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,11 @@ namespace micm

return ConfigParseStatus::Success;
}

bool has_non_standard_keys(const std::vector<std::string> keys, const json& object) {

return false;
}
};

/// @brief Public interface to read and parse config
Expand Down

0 comments on commit 141a4ba

Please sign in to comment.