Skip to content

Commit

Permalink
Allow colima to use more resources (#25)
Browse files Browse the repository at this point in the history
* Allow colima to use all available cpu and memory

Signed-off-by: Douglas Camata <[email protected]>

* Do a test build on push to any branch

Signed-off-by: Douglas Camata <[email protected]>

* Revert "Do a test build on push to any branch"

This reverts commit 9fa161e.

---------

Signed-off-by: Douglas Camata <[email protected]>
  • Loading branch information
douglascamata authored Dec 15, 2023
1 parent 521d7ba commit 66ddc6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ runs:
env:
COLIMA_NETWORK_ADDRESS: ${{ inputs.colima-network-address }}
run: |
COLIMA_ARGS=""
CPU_COUNT=$(sysctl -n hw.ncpu)
MEMORY=$(sysctl hw.memsize | awk '{print $2/1024/1024/1024}')
COLIMA_ARGS="--cpu $CPU_COUNT --memory $MEMORY"
if [ $COLIMA_NETWORK_ADDRESS == "true" ]
then
COLIMA_ARGS="$COLIMA_ARGS --network-address"
Expand Down

0 comments on commit 66ddc6d

Please sign in to comment.