Skip to content

Commit

Permalink
Arch Specification
Browse files Browse the repository at this point in the history
  • Loading branch information
samyakkkk committed Mar 17, 2024
1 parent 6f42def commit d89babe
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/executables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
run: |
if [[ "${{ matrix.macos-arch }}" == "arm64" ]]; then
arch -arm64 ./executable/${{ matrix.binary-name }} --help
else
./executable/${{ matrix.binary-name }} --help
fi

0 comments on commit d89babe

Please sign in to comment.