diff --git a/.github/workflows/check_together.yml b/.github/workflows/check_together.yml index f90b346..74efd03 100644 --- a/.github/workflows/check_together.yml +++ b/.github/workflows/check_together.yml @@ -19,6 +19,7 @@ jobs: os: - ubuntu-latest - macos-latest + - ubuntu-24.04-arm steps: - name: Checkout uses: actions/checkout@v4.1.0 @@ -41,4 +42,4 @@ jobs: elif [[ "${{ steps.check.outputs.files }}" =~ $notexpect ]];then echo "::error:: Expected file $notexpect found in ${{ steps.check.outputs.files }}" exit 1 - fi \ No newline at end of file + fi diff --git a/action.yaml b/action.yaml index 130781e..8498a3e 100644 --- a/action.yaml +++ b/action.yaml @@ -69,9 +69,13 @@ runs: fi baseurl="https://github.com/koalaman/shellcheck/releases/download" + arch=$(uname -m) + if [[ "${arch}" == "arm64" ]]; then + arch="aarch64" + fi curl -Lso "${{ github.action_path }}/sc.tar.xz" \ - "${baseurl}/${INPUT_VERSION}/shellcheck-${INPUT_VERSION}.${osvariant}.x86_64.tar.xz" + "${baseurl}/${INPUT_VERSION}/shellcheck-${INPUT_VERSION}.${osvariant}.${arch}.tar.xz" tar -xf "${{ github.action_path }}/sc.tar.xz" -C "${{ github.action_path }}" mv "${{ github.action_path }}/shellcheck-${INPUT_VERSION}/shellcheck" \