Skip to content

Commit

Permalink
Update dist (#405)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub <noreply@github.com>
  • Loading branch information
github-actions[bot] and web-flow committed Apr 25, 2023
1 parent 1aae181 commit a1c4953
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 13 deletions.
19 changes: 14 additions & 5 deletions 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.

14 changes: 7 additions & 7 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ const architecture_x86_64 = 'x86_64'
const architecture_aarch64 = 'aarch64'

const architecture = getCoursierArchitecture()
const csVersion = core.getInput('version') || (architecture === architecture_x86_64
? defaultVersion_x86_64
: defaultVersion_aarch64
)
const csVersion =
core.getInput('version') ||
(architecture === architecture_x86_64 ? defaultVersion_x86_64 : defaultVersion_aarch64)
const coursierVersionSpec = csVersion
const coursierBinariesGithubRepository = (architecture === architecture_x86_64)
? 'https://github.com/coursier/coursier/'
: 'https://github.com/VirtusLab/coursier-m1/'
const coursierBinariesGithubRepository =
architecture === architecture_x86_64
? 'https://github.com/coursier/coursier/'
: 'https://github.com/VirtusLab/coursier-m1/'

function getCoursierArchitecture(): string {
if (process.arch === 'x64') {
Expand Down

0 comments on commit a1c4953

Please sign in to comment.