From 330fb24d5596e3eac934db87186ae42ade0d5a4e Mon Sep 17 00:00:00 2001 From: Noah Saso Date: Tue, 28 May 2024 19:27:42 -0400 Subject: [PATCH] add write permission to artifact build CI, and change optimizer to v0.14.0 --- .github/workflows/artifacts.yml | 6 +++++- devtools/optimize.sh | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 6a80804..e9752f3 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -1,5 +1,9 @@ # Builds and commits the artifacts whenever a change is pushed to main. name: artifact compiler + +permissions: + contents: write + on: workflow_dispatch: push: @@ -9,7 +13,7 @@ on: jobs: release-artifacts: runs-on: ubuntu-latest - container: cosmwasm/workspace-optimizer:0.15.1 + container: cosmwasm/workspace-optimizer:0.14.0 steps: - uses: actions/checkout@v3 diff --git a/devtools/optimize.sh b/devtools/optimize.sh index 1ec55e3..3db2907 100755 --- a/devtools/optimize.sh +++ b/devtools/optimize.sh @@ -5,12 +5,12 @@ if [[ $(uname -m) =~ "arm64" ]]; then \ --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \ --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \ --platform linux/arm64 \ - cosmwasm/workspace-optimizer-arm64:0.15.1 + cosmwasm/workspace-optimizer-arm64:0.14.0 else docker run --rm -v "$(pwd)":/code \ --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \ --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \ --platform linux/amd64 \ - cosmwasm/workspace-optimizer:0.15.1 + cosmwasm/workspace-optimizer:0.14.0 fi