Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/test-determine-release-url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ jobs:
expected-url: https://github.com/example-org/example-app/releases/latest/download/my-binary-x86_64-unknown-linux-gnu
- image: windows-latest
expected-url: https://github.com/example-org/example-app/releases/latest/download/my-binary-x86_64-pc-windows-msvc.exe
- image: macos-latest
- image: macos-26-intel
expected-url: https://github.com/example-org/example-app/releases/latest/download/my-binary-x86_64-apple-darwin
- image: macos-26
expected-url: https://github.com/example-org/example-app/releases/latest/download/my-binary-aarch64-apple-darwin
runs-on: ${{ matrix.os.image }}
steps:
- uses: actions/checkout@v6
Expand All @@ -35,8 +37,10 @@ jobs:
expected-url: https://github.com/demo-org/demo-app/releases/latest/download/program-linux
- image: windows-latest
expected-url: https://github.com/demo-org/demo-app/releases/latest/download/program-windows.exe
- image: macos-latest
- image: macos-26-intel
expected-url: https://github.com/demo-org/demo-app/releases/latest/download/program-macos
- image: macos-26
expected-url: https://github.com/demo-org/demo-app/releases/latest/download/program-macos-arm
runs-on: ${{ matrix.os.image }}
steps:
- uses: actions/checkout@v6
Expand All @@ -49,6 +53,7 @@ jobs:
linux-suffix: linux
windows-suffix: windows
macos-suffix: macos
macos-arm-suffix: macos-arm
- uses: armakuni/github-actions/assert-equals@v0.19.14
name: Check url
with:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test-install-release-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ jobs:
os:
- ubuntu-latest
- windows-latest
- macos-latest
- macos-26-intel
- macos-26
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
Expand All @@ -26,7 +27,8 @@ jobs:
os:
- ubuntu-latest
- windows-latest
- macos-latest
- macos-26-intel
- macos-26
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
Expand Down
11 changes: 8 additions & 3 deletions determine-release-url/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ inputs:
required: false
default: x86_64-unknown-linux-gnu
macos-suffix:
description: The suffix to add to Linux binaries
description: The suffix to add to macOS binaries
required: false
default: x86_64-apple-darwin
macos-arm-suffix:
description: The suffix to add to macOS ARM binaries
required: false
default: aarch64-apple-darwin
version:
description: The required release version
required: false
Expand All @@ -36,14 +40,15 @@ outputs:
runs:
using: composite
steps:
- name: Determin Binary Name
- name: Determine Binary Name
id: get-binary-name
uses: tomphp/github-actions/determine-binary-name@v0.3.0
uses: tomphp/github-actions/determine-binary-name@v0.6.0
with:
name: ${{ inputs.binary-name }}
windows-suffix: ${{ inputs.windows-suffix }}
linux-suffix: ${{ inputs.linux-suffix }}
macos-suffix: ${{ inputs.macos-suffix }}
macos-arm-suffix: ${{ inputs.macos-arm-suffix }}

- name: Determine Release Base URL
id: get-base-url
Expand Down
12 changes: 9 additions & 3 deletions install-release-binary/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ inputs:
required: false
default: x86_64-unknown-linux-gnu
macos-suffix:
description: The suffix to add to Linux binaries
description: The suffix to add to macOS binaries
required: false
default: x86_64-apple-darwin
macos-arm-suffix:
description: The suffix to add to macOS ARM binaries
required: false
default: aarch64-apple-darwin
version:
description: The required release version
required: false
Expand All @@ -33,16 +37,17 @@ runs:
steps:
- name: Determin Binary Name
id: get-binary-name
uses: tomphp/github-actions/determine-binary-name@v0.4.1
uses: tomphp/github-actions/determine-binary-name@v0.6.0
with:
name: ${{ inputs.binary-name }}
windows-suffix: ${{ inputs.windows-suffix }}
linux-suffix: ${{ inputs.linux-suffix }}
macos-suffix: ${{ inputs.macos-suffix }}
macos-arm-suffix: ${{ inputs.macos-arm-suffix }}

- name: Determine Release URL
id: get-release-url
uses: tomphp/github-actions/determine-release-url@v0.4.1
uses: tomphp/github-actions/determine-release-url@v0.6.0
with:
owner: ${{ inputs.owner }}
repository: ${{ inputs.repository }}
Expand All @@ -51,6 +56,7 @@ runs:
windows-suffix: ${{ inputs.windows-suffix }}
linux-suffix: ${{ inputs.linux-suffix }}
macos-suffix: ${{ inputs.macos-suffix }}
macos-arm-suffix: ${{ inputs.macos-arm-suffix }}

- name: Install Binary
id: install
Expand Down
Loading