Commit Graph

32 Commits

Author SHA1 Message Date
Curtis Vogt
014c323ee0 Resolve min as the earliest compatible Julia version (compatible with the user's project) (#202)
* Support the special version "MIN"

* Support JULIA_PROJECT

* Add tests

* Add forgotten test fixtures

* Get latest prerelease/release

* No special pre-release behaviour

* Add test for NPM semver difference

* Robust test suite

* Disallow less-than-equal

* Refactor validJuliaCompatRange to return a validRange

* Rename MIN to min

* Rename getProjectFile to getProjectFilePath

* Comment on "project" input

* Additional tests for getProjectFilePath

* Add comment on `juliaCompatRange`

Co-authored-by: Dilum Aluthge <dilum@aluthge.com>

* Update dependencies

---------

Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
2024-08-30 10:58:16 -05:00
Ian Butterworth
0c4130534d Improve example version instructions. Add info about "lts" if user specifies 1.6 explicitly (#265)
* improve example versions and note

* add info if user explicitly sets version to 1.6

* npm run build

* add 1.6 explicitly to CI

* convert to a github actions notice

* try core.notice

* npm run build

* Apply suggestions from code review

Co-authored-by: Dilum Aluthge <dilum@aluthge.com>

* Update action.yml

* update example

* update toc

* npm build

---------

Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
2024-07-21 11:11:51 -04:00
Dilum Aluthge
5956f5ed17 If the user provides default as the value of the arch input, use the runner machine's architecture (#263)
* If the user provides `default` as the value of the `arch` input, use the runner machine's architecture

* `npm run build`

* Convert the key `processedArchInput` to lower case before indexing into the `archSynonyms` dict

* `npm run build`

---------

Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com>
2024-07-21 10:58:40 +00:00
Ian Butterworth
d3d61d99d5 extract julia directly to tool path to maintain mtimes (#196)
Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
Co-authored-by: Curtis Vogt <curtis.vogt@gmail.com>
2024-01-05 12:49:05 -05:00
スノル
152b85e982 Update dependencies (#133)
* Use `fs.rmSync` instead of `fs.rmdirSync`.

To get rid of the deprecation warning. #119

* Update dependencies.
2023-02-09 23:00:27 +00:00
Sergio Sánchez Ramírez
294135b6de Include arm64 alias for aarch64 (#134)
This should fix arch lookup in Apple M-series.
2023-02-09 11:49:10 +00:00
Sascha Mann
a7ad2168c4 Add include-all-prereleases input (#127)
fixes #126
2022-12-11 22:03:47 -05:00
Dilum Aluthge
3a89763b86 Fix the "default arch" code path with Julia nightly (and add a CI job for that code path) (#115) 2022-06-25 09:26:39 +02:00
Sascha Mann
e11d58a9c2 Change show-versioninfo to always print full info for nightlies (#68)
Co-authored-by: Derk-Jan Karrenbeld <derk-jan+github@karrenbeld.info>
2021-01-13 09:35:46 +00:00
Sascha Mann
66addd1b2f Don't print version twice if show-versioninfo is enabled 2021-01-03 13:42:52 +01:00
Sascha Mann
3ff0592a25 Use --compile=min -O0 flags for versioninfo
Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com>
2021-01-03 13:42:52 +01:00
Sascha Mann
2feb9a10bf Set installed Julia version as output (#58)
* Set installed Julia version as output

(fixes #51)

* Bump version
2020-12-26 15:35:42 +01:00
Sascha Mann
45f46ba622 Get Julia versions from versions.json (#24)
This replaces the hardcoded versions array which will decouple the setup-julia version and the installable Julia versions.
2020-11-08 15:06:21 +01:00
Sascha Mann
c639390e13 Handle install directories using tool-cache (#46)
* Make test builds more verbose

* Handle install directories using tool-cache

* Bump version to 1.3.0-DEV
2020-09-26 18:20:43 +02:00
Sascha Mann
b4e544c83e Add IP to debug logs 2020-08-18 23:04:06 +02:00
Sascha Mann
aced07b9c9 Fail build when inputs are empty 2020-07-30 13:21:38 +02:00
Sascha Mann
d2ec2a4741 Remove redundant await 2020-07-10 15:19:45 +02:00
Sascha Mann
3eb3524cb4 Fix divergence caused by not running npm i before build 2020-06-30 23:45:16 +02:00
Sascha Mann
6ac7df4cef Add Julia 1.5.0-rc1 2020-06-30 23:39:12 +02:00
Sascha Mann
83f4f82909 Don't show versioninfo() by default (#25)
* Only show versioninfo() in debug mode

* Add input to specify if versioninfo() is displayed

* No access to secrets
2020-02-19 20:45:01 +01:00
Sascha Mann
dc7c0defbe Always use hardcoded versions to match ranges 2019-11-20 19:58:43 +01:00
Sascha Mann
16c0aaf600 Refactor getJuliaVersion to make it testable 2019-11-20 19:58:43 +01:00
Sascha Mann
dc7dce0a2d Move functions to separate file for easier unit testing 2019-11-20 19:58:43 +01:00
Sascha Mann
3861b0a708 Print full response in debug logs 2019-11-20 19:58:43 +01:00
Sascha Mann
8007d2c472 Remove trailing v from versions before download 2019-11-20 19:58:43 +01:00
Sascha Mann
955535b050 Support version ranges as input version 2019-11-20 19:58:43 +01:00
Sascha Mann
a7c1edc063 Support 32-bit Julia binaries 2019-08-21 15:51:35 +02:00
Sascha Mann
a8a77e20fd Use cached Julia if available 2019-08-17 18:05:37 +02:00
Sascha Mann
6182d4ae38 Change console logging to core.debug logs 2019-08-13 17:43:44 +02:00
Sascha Mann
371167db47 Support build matrices and non-Linux OS 2019-08-13 17:43:29 +02:00
Sascha Mann
f8e69caa03 Use tool-cache to install Julia 2019-08-13 17:43:29 +02:00
Sascha Mann
7961e4e3f2 Add prototype action using exec and curl
* Downloads a fixed version Julia binary using curl
* Adds it to PATH
* Runs `julia --version` to test the installation
2019-08-13 12:11:39 +02:00