Skip to content

Commit

Permalink
Fix #58: Add architecture alias for x86-64: x64
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-carlborg committed Aug 4, 2023
1 parent 1eb549d commit 3d66acb
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Added
- Add support for custom image URLs ([#13](https://github.com/cross-platform-actions/action/pull/13))
- Add architecture alias for x86-64: x64 ([#58](https://github.com/cross-platform-actions/action/issues/58))

## [0.17.0] - 2023-07-25
### Changed
Expand Down
3 changes: 2 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions spec/architecture.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ describe('toKind', () => {
})
})

describe('X64', () => {
it('returns the x86_64 architecture', () => {
expect(architecture.toKind('x64')).toBe(architecture.Kind.x86_64)
})
})

describe('X86_64', () => {
it('returns the x86_64 architecture', () => {
expect(architecture.toKind('x86-64')).toBe(architecture.Kind.x86_64)
Expand Down
3 changes: 2 additions & 1 deletion src/architecture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,5 +183,6 @@ const architectureMap: Record<string, Kind> = {
arm64: Kind.arm64,
aarch64: Kind.arm64,
'x86-64': Kind.x86_64,
x86_64: Kind.x86_64
x86_64: Kind.x86_64,
x64: Kind.x86_64
} as const

0 comments on commit 3d66acb

Please sign in to comment.