@@ -71,26 +71,15 @@ jobs:
71
71
default : true
72
72
components : rustfmt, clippy
73
73
74
- # This step is only needed for Windows
75
- - name : Set up MSYS2 for Windows
76
- if : runner.os == 'Windows'
77
- uses : msys2/setup-msys2@v2
78
- with :
79
- msystem : ${{ matrix.config.msystem }}
80
- path-type : inherit
81
- release : false
82
- update : false
83
-
84
74
# All configurations for Windows go here
85
- # `Rust` toolchain is used to determine target architecture
86
- # Alternatively, `if:` conditions can be used
75
+ # Rust toolchain is used to determine target architecture
87
76
- name : Configure Windows
88
77
if : runner.os == 'Windows'
89
78
# 1. Add appropriate *-gnu target
90
- # 2. Set CARGO_BUILD_FLAGS to the `rust` target
91
- # 3. Configure path to ` libclang`
92
- # 4. Add path to ` mingw32`/` mingw64` -- otherwise library is linked to ` rtools`
93
- # 5. Add path to R's ` i386`/` x64` -- to solve ` x86` build/test issue
79
+ # 2. Set CARGO_BUILD_FLAGS to the Rust target
80
+ # 3. Configure path to libclang
81
+ # 4. Add path to mingw32/ mingw64 -- otherwise library is linked to rtools
82
+ # 5. Add path to R's i386/ x64 -- to solve x86 build/test issue
94
83
run : |
95
84
if ($env:RUST_TOOLCHAIN -like "*x86_64*") {
96
85
rustup target add x86_64-pc-windows-gnu ;
@@ -111,7 +100,7 @@ jobs:
111
100
RUST_TOOLCHAIN : ${{ matrix.config.rust-version }}
112
101
113
102
114
- # MacOS configurations, mainly ` llvm` and path to ` libclang`
103
+ # MacOS configurations, mainly llvm and path to libclang
115
104
- name : Configure MacOs
116
105
if : runner.os == 'macOS'
117
106
run : |
@@ -120,14 +109,14 @@ jobs:
120
109
121
110
122
111
# This is required for ubuntu r-devel
123
- # 'Del alias:R' removes 'R' alias which prevents running R
112
+ # 'Del alias:R' removes R alias which prevents running R
124
113
- name : Configure Linux
125
114
if : runner.os == 'linux'
126
115
run : |
127
116
Del alias:R
128
117
echo "LD_LIBRARY_PATH=$(R -s -e 'cat(normalizePath(R.home()))')/lib" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
129
118
130
- # Build and emit bindings to ` ./generated_bindings`
119
+ # Build and emit bindings to ' ./generated_bindings'
131
120
- name : Build & Emit bindings
132
121
id : build
133
122
run : |
0 commit comments