From d89babe8fa9870eef24d82fd917dfea0c701c71a Mon Sep 17 00:00:00 2001 From: Samyak Jain <56000318+samyakkkk@users.noreply.github.com> Date: Sun, 17 Mar 2024 21:11:13 +0530 Subject: [PATCH] Arch Specification --- .github/workflows/executables.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/executables.yml b/.github/workflows/executables.yml index 4b3a6fd..d1511d5 100644 --- a/.github/workflows/executables.yml +++ b/.github/workflows/executables.yml @@ -69,12 +69,11 @@ jobs: run: chmod +x ./executable/${{ matrix.binary-name }} # Execute a basic command or test for non-macOS, simplified for demonstration - - name: Test binary (Windows and Linux) - if: matrix.os != 'macos-latest' - run: ./executable/${{ matrix.binary-name }} --help - - # macOS requires a bit more work due to needing to specify the architecture - # IMPORTANT: Modify the execution command to fit your binary's test/validation command - name: Test binary (macOS) if: matrix.os == 'macos-latest' - run: arch -${{ matrix.macos-arch }} ./executable/${{ matrix.binary-name }} --help \ No newline at end of file + run: | + if [[ "${{ matrix.macos-arch }}" == "arm64" ]]; then + arch -arm64 ./executable/${{ matrix.binary-name }} --help + else + ./executable/${{ matrix.binary-name }} --help + fi \ No newline at end of file