Skip to content

Commit

Permalink
Merge pull request #99 from srz-zumix/feature/support_apple_silicon
Browse files Browse the repository at this point in the history
container-architecture on apple silicon
  • Loading branch information
srz-zumix authored Nov 30, 2023
2 parents b1ddf91 + 8a34b3b commit 30e95e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gh-act
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,10 @@ function main() {
ACT_OPTIONS+=(--defaultbranch "${ACT_DEFAULT_BRANCH}")
fi

if [ "$(uname)" == "Darwin" ] && [ "$(uname -m)" == "arm64" ]; then
ACT_OPTIONS+=(--container-architecture linux/amd64)
fi

if "${CREATE_EVENT_JSON}"; then
if [ ! -f "${EVENT_PATH}" ]; then
tempdir
Expand Down

0 comments on commit 30e95e9

Please sign in to comment.