Skip to content

Commit 53f38a5

Browse files
authored
Merge pull request #23 from tomphp/add-arm-support
Add arm support
2 parents 470cc90 + f41cb0d commit 53f38a5

4 files changed

Lines changed: 28 additions & 10 deletions

File tree

.github/workflows/test-determine-release-url.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ jobs:
1010
expected-url: https://github.com/example-org/example-app/releases/latest/download/my-binary-x86_64-unknown-linux-gnu
1111
- image: windows-latest
1212
expected-url: https://github.com/example-org/example-app/releases/latest/download/my-binary-x86_64-pc-windows-msvc.exe
13-
- image: macos-latest
13+
- image: macos-26-intel
1414
expected-url: https://github.com/example-org/example-app/releases/latest/download/my-binary-x86_64-apple-darwin
15+
- image: macos-26
16+
expected-url: https://github.com/example-org/example-app/releases/latest/download/my-binary-aarch64-apple-darwin
1517
runs-on: ${{ matrix.os.image }}
1618
steps:
1719
- uses: actions/checkout@v6
@@ -35,8 +37,10 @@ jobs:
3537
expected-url: https://github.com/demo-org/demo-app/releases/latest/download/program-linux
3638
- image: windows-latest
3739
expected-url: https://github.com/demo-org/demo-app/releases/latest/download/program-windows.exe
38-
- image: macos-latest
40+
- image: macos-26-intel
3941
expected-url: https://github.com/demo-org/demo-app/releases/latest/download/program-macos
42+
- image: macos-26
43+
expected-url: https://github.com/demo-org/demo-app/releases/latest/download/program-macos-arm
4044
runs-on: ${{ matrix.os.image }}
4145
steps:
4246
- uses: actions/checkout@v6
@@ -49,6 +53,7 @@ jobs:
4953
linux-suffix: linux
5054
windows-suffix: windows
5155
macos-suffix: macos
56+
macos-arm-suffix: macos-arm
5257
- uses: armakuni/github-actions/assert-equals@v0.19.14
5358
name: Check url
5459
with:

.github/workflows/test-install-release-binary.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ jobs:
88
os:
99
- ubuntu-latest
1010
- windows-latest
11-
- macos-latest
11+
- macos-26-intel
12+
- macos-26
1213
runs-on: ${{ matrix.os }}
1314
steps:
1415
- uses: actions/checkout@v6
@@ -26,7 +27,8 @@ jobs:
2627
os:
2728
- ubuntu-latest
2829
- windows-latest
29-
- macos-latest
30+
- macos-26-intel
31+
- macos-26
3032
runs-on: ${{ matrix.os }}
3133
steps:
3234
- uses: actions/checkout@v6

determine-release-url/action.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ inputs:
2020
required: false
2121
default: x86_64-unknown-linux-gnu
2222
macos-suffix:
23-
description: The suffix to add to Linux binaries
23+
description: The suffix to add to macOS binaries
2424
required: false
2525
default: x86_64-apple-darwin
26+
macos-arm-suffix:
27+
description: The suffix to add to macOS ARM binaries
28+
required: false
29+
default: aarch64-apple-darwin
2630
version:
2731
description: The required release version
2832
required: false
@@ -36,14 +40,15 @@ outputs:
3640
runs:
3741
using: composite
3842
steps:
39-
- name: Determin Binary Name
43+
- name: Determine Binary Name
4044
id: get-binary-name
41-
uses: tomphp/github-actions/determine-binary-name@v0.3.0
45+
uses: tomphp/github-actions/determine-binary-name@v0.6.0
4246
with:
4347
name: ${{ inputs.binary-name }}
4448
windows-suffix: ${{ inputs.windows-suffix }}
4549
linux-suffix: ${{ inputs.linux-suffix }}
4650
macos-suffix: ${{ inputs.macos-suffix }}
51+
macos-arm-suffix: ${{ inputs.macos-arm-suffix }}
4752

4853
- name: Determine Release Base URL
4954
id: get-base-url

install-release-binary/action.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ inputs:
2020
required: false
2121
default: x86_64-unknown-linux-gnu
2222
macos-suffix:
23-
description: The suffix to add to Linux binaries
23+
description: The suffix to add to macOS binaries
2424
required: false
2525
default: x86_64-apple-darwin
26+
macos-arm-suffix:
27+
description: The suffix to add to macOS ARM binaries
28+
required: false
29+
default: aarch64-apple-darwin
2630
version:
2731
description: The required release version
2832
required: false
@@ -33,16 +37,17 @@ runs:
3337
steps:
3438
- name: Determin Binary Name
3539
id: get-binary-name
36-
uses: tomphp/github-actions/determine-binary-name@v0.4.1
40+
uses: tomphp/github-actions/determine-binary-name@v0.6.0
3741
with:
3842
name: ${{ inputs.binary-name }}
3943
windows-suffix: ${{ inputs.windows-suffix }}
4044
linux-suffix: ${{ inputs.linux-suffix }}
4145
macos-suffix: ${{ inputs.macos-suffix }}
46+
macos-arm-suffix: ${{ inputs.macos-arm-suffix }}
4247

4348
- name: Determine Release URL
4449
id: get-release-url
45-
uses: tomphp/github-actions/determine-release-url@v0.4.1
50+
uses: tomphp/github-actions/determine-release-url@v0.6.0
4651
with:
4752
owner: ${{ inputs.owner }}
4853
repository: ${{ inputs.repository }}
@@ -51,6 +56,7 @@ runs:
5156
windows-suffix: ${{ inputs.windows-suffix }}
5257
linux-suffix: ${{ inputs.linux-suffix }}
5358
macos-suffix: ${{ inputs.macos-suffix }}
59+
macos-arm-suffix: ${{ inputs.macos-arm-suffix }}
5460

5561
- name: Install Binary
5662
id: install

0 commit comments

Comments
 (0)