Compare commits

..

1 Commits
v1.1.0 ... v1.0

Author SHA1 Message Date
Sascha Mann
d481ced272 Add production dependencies & build 2020-02-13 10:54:11 +01:00
4 changed files with 4 additions and 22 deletions

View File

@@ -51,8 +51,6 @@ Currently the list of available versions is hardcoded. You have to use the lates
### Matrix Testing ### Matrix Testing
`bash` is chosen as shell to enforce consistent behaviour across operating systems. [Other shells](https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell) are available but you may have to escape quotation marks or otherwise adjust the syntax.
#### 64-bit Julia only #### 64-bit Julia only
```yaml ```yaml
@@ -71,7 +69,6 @@ jobs:
with: with:
version: ${{ matrix.julia-version }} version: ${{ matrix.julia-version }}
- run: julia -e 'println("Hello, World!")' - run: julia -e 'println("Hello, World!")'
shell: bash
``` ```
#### 32-bit Julia #### 32-bit Julia
@@ -98,7 +95,6 @@ jobs:
version: ${{ matrix.julia-version }} version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }} arch: ${{ matrix.julia-arch }}
- run: julia -e 'println("Hello, World!")' - run: julia -e 'println("Hello, World!")'
shell: bash
``` ```
Alternatively, you can include specific version and OS combinations that will use 32-bit Julia: Alternatively, you can include specific version and OS combinations that will use 32-bit Julia:
@@ -124,7 +120,6 @@ jobs:
with: with:
version: ${{ matrix.julia-version }} version: ${{ matrix.julia-version }}
- run: julia -e 'println("Hello, World!")' - run: julia -e 'println("Hello, World!")'
shell: bash
``` ```
## Versioning ## Versioning

View File

@@ -9,10 +9,6 @@ inputs:
description: 'Architecture of the Julia binaries. Defaults to x64.' description: 'Architecture of the Julia binaries. Defaults to x64.'
required: false required: false
default: 'x64' default: 'x64'
show-versioninfo:
description: 'Display InteractiveUtils.versioninfo() after installing'
required: false
default: 'false'
runs: runs:
using: 'node12' using: 'node12'
main: 'lib/setup-julia.js' main: 'lib/setup-julia.js'

8
lib/setup-julia.js generated
View File

@@ -43,12 +43,8 @@ function run() {
} }
// Add it to PATH // Add it to PATH
core.addPath(path.join(juliaPath, 'bin')); core.addPath(path.join(juliaPath, 'bin'));
// Test if Julia has been installed // Test if Julia has been installed by showing versioninfo()
exec.exec('julia', ['--version']); yield exec.exec('julia', ['-e', 'using InteractiveUtils; versioninfo()']);
// If enabled, also show the full version info
if (core.getInput('show-versioninfo') == 'true') {
exec.exec('julia', ['-e', 'using InteractiveUtils; versioninfo()']);
}
} }
catch (error) { catch (error) {
core.setFailed(error.message); core.setFailed(error.message);

View File

@@ -32,13 +32,8 @@ async function run() {
// Add it to PATH // Add it to PATH
core.addPath(path.join(juliaPath, 'bin')) core.addPath(path.join(juliaPath, 'bin'))
// Test if Julia has been installed // Test if Julia has been installed by showing versioninfo()
exec.exec('julia', ['--version']) await exec.exec('julia', ['-e', 'using InteractiveUtils; versioninfo()'])
// If enabled, also show the full version info
if (core.getInput('show-versioninfo') == 'true') {
exec.exec('julia', ['-e', 'using InteractiveUtils; versioninfo()'])
}
} catch (error) { } catch (error) {
core.setFailed(error.message) core.setFailed(error.message)
} }