-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathaction.yaml
107 lines (99 loc) · 3.78 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: 'r-hub/actions/platform-info'
description: |
R platform information.
author: 'Gábor Csárdi'
inputs:
token:
description: |
Custom GitHub personal access Potentially useful to allow access
to private repositories or other resources, but it is not used
currently.
job-config:
description: |
The matrix config, as set up by the `setup` action. Not used
currently.
runs:
using: "composite"
steps:
- uses: r-hub/actions/debug-shell@v1
- name: R Options
run: |
#
cat("::group::R Options\n")
options()
cat("::endgroup::\n")
shell: Rscript {0}
- name: Environment variables in R
run: |
#
cat("::group::Environment variables in R\n")
Sys.getenv()
cat("::endgroup::\n")
shell: Rscript {0}
- name: OS information
run: |
#
cat("::group::OS information\n")
if (Sys.info()[["sysname"]] == "Linux") {
writeLines("-- uname -a -------------------------------------------------------------")
system("uname -a")
if (file.exists("/etc/os-release")) {
writeLines("-- /etc/os-release ------------------------------------------------------")
writeLines(readLines("/etc/os-release"))
}
} else if (Sys.info()[["sysname"]] == "Darwin") {
writeLines("-- macOS system info ----------------------------------------------------")
system("system_profiler SPSoftwareDataType SPHardwareDataType")
} else if (Sys.info()[["sysname"]] == "Windows") {
writeLines("-- Windows system info --------------------------------------------------")
system("systeminfo")
}
cat("::endgroup::\n")
shell: Rscript {0}
- name: Compiler information
run: |
#
cat("::group::Compiler information\n")
writeLines("-- $(CC) --version ------------------------------------------------------")
invisible(system(paste(system(paste0(file.path(R.home("bin"), "R"), " CMD config CC"), intern = TRUE), "--version")))
writeLines("-- $(CXX) --version ----------------------------------------------------")
invisible(system(paste(system(paste0(file.path(R.home("bin"), "R"), " CMD config CXX"), intern = TRUE), "--version")))
writeLines("-- $(FC) --version ------------------------------------------------------")
invisible(system(paste(system(paste0(file.path(R.home("bin"), "R"), " CMD config FC"), intern = TRUE), "--version")))
cat("::endgroup::\n")
shell: Rscript {0}
- name: R session information
run: |
#
cat("::group::R session information\n")
sessionInfo()
cat("::endgroup::\n")
shell: Rscript {0}
- name: More R infomation
run: |
#
cat("::group::More R information\n")
writeLines("-- capabilities() -------------------------------------------------------")
capabilities()
writeLines("-- extSoftVersion() -----------------------------------------------------")
extSoftVersion()
writeLines("-- l10n_info() ----------------------------------------------------------")
l10n_info()
writeLines("-- La_version(), La_library() -------------------------------------------")
La_version()
La_library()
writeLines("-- grSoftVersion() ------------------------------------------------------")
grSoftVersion()
writeLines("-- pcre_config() --------------------------------------------------------")
pcre_config()
writeLines("-- libcurlVersion() -----------------------------------------------------")
libcurlVersion()
cat("::endgroup::\n")
shell: Rscript {0}
- name: R CMD config
run: |
#
cat("::group::R CMD config\n")
system(paste0(file.path(R.home("bin"), "R"), " CMD config --all"))
cat("::endgroup::\n")
shell: Rscript {0}