Skip to content

Commit

Permalink
Parameterize maximize-build-space action by arch (canonical#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
addyess authored Apr 11, 2024
1 parent 36db458 commit 86e4880
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build_rocks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@ on:
If not provided, it defaults to whatever revision is in latest/stable.
default: ''
arch-skipping-maximize-build-space:
type: string
description: |-
Some gh runners cannot use the maximize-build-spaces action
This config allows you skip that action on certain architectures.
JSON list of rockcraft arches to skip the maximize-build-space action
the values should be a rockcraft arch types which skip the maximize-build-space action
example)
arch-skipping-maximize-build-space: '["arm64"]'
default: '[]'
outputs:
images:
description: List of images built
Expand Down Expand Up @@ -150,6 +162,7 @@ jobs:
run: |
sudo mkdir -p /var/snap/lxd/common/lxd/storage-pools
- name: Maximize build space
if: ${{ !contains(fromJson(inputs.arch-skipping-maximize-build-space), matrix.rock.arch) }}
uses: easimon/maximize-build-space@v10
with:
root-reserve-mb: 2048
Expand Down

0 comments on commit 86e4880

Please sign in to comment.