Skip to content

Commit 7cb78db

Browse files
committed
feat: add macos arm to determine-release-url
1 parent 00bb723 commit 7cb78db

2 files changed

Lines changed: 15 additions & 5 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-app/demo-org/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:

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

0 commit comments

Comments
 (0)