Skip to content

Commit

Permalink
Check GitHub runner architecture
Browse files Browse the repository at this point in the history
Make sure that the releases are built for the expected target arch.
  • Loading branch information
rom1v committed Nov 28, 2024
1 parent 3df3116 commit 2351b6f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,15 @@ jobs:
build-linux-x86_64:
runs-on: ubuntu-latest
steps:
- name: Check architecture
run: |
arch=$(uname -m)
if [[ "$arch" != x86_64 ]]
then
echo "Unexpected architecture: $arch" >&2
exit 1
fi
- name: Checkout code
uses: actions/checkout@v4

Expand Down Expand Up @@ -181,6 +190,15 @@ jobs:
build-macos-aarch64:
runs-on: macos-latest
steps:
- name: Check architecture
run: |
arch=$(uname -m)
if [[ "$arch" != aarch64 ]]
then
echo "Unexpected architecture: $arch" >&2
exit 1
fi
- name: Checkout code
uses: actions/checkout@v4

Expand Down Expand Up @@ -209,6 +227,15 @@ jobs:
build-macos-x86_64:
runs-on: macos-13
steps:
- name: Check architecture
run: |
arch=$(uname -m)
if [[ "$arch" != x86_64 ]]
then
echo "Unexpected architecture: $arch" >&2
exit 1
fi
- name: Checkout code
uses: actions/checkout@v4

Expand Down

0 comments on commit 2351b6f

Please sign in to comment.