Skip to content

Commit fb0ba2f

Browse files
authored
Update ci.yml
1 parent 2c79259 commit fb0ba2f

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- dev
1111
tags: '*'
1212
env:
13-
TEST_MLJBASE: "true"
13+
1414
jobs:
1515
test:
1616
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -32,6 +32,27 @@ jobs:
3232
with:
3333
version: ${{ matrix.version }}
3434
arch: ${{ matrix.arch }}
35+
- uses: actions/cache@v1
36+
- name: "Replace julia libstdcxx ubuntu + julia v1.6"
37+
if: ${{ matrix.version == '1.6' && matrix.os == 'ubuntu-latest' }}
38+
# The following is needed for Julia <=1.8.3 on Linux OS
39+
# due to old version of libstcxx used by Julia
40+
# taken from https://github.com/hhaensel/ReplaceLibstdcxx.jl/blob/main/src/ReplaceLibstdcxx.jl
41+
- run: |
42+
julia -e '
43+
libs = filter(x -> ! occursin("32", x), getindex.(split.(readlines(pipeline(`ldconfig -p`, `grep libstdc`)), r"\s*=>\s*"), 2))
44+
source_dir = dirname(libs[end])
45+
julia_lib_dir = joinpath(dirname(Sys.BINDIR), "lib", "julia")
46+
julia_lib_file = get(filter(endswith(r"libstdc\+\+.so\.\d+\.\d+\.\d+"), readdir(julia_lib_dir, join = true)), 1, nothing)
47+
julia_lib_version = match(r"so(\.\d+)\.", julia_lib_file).captures[1]
48+
source_lib = get(filter(endswith(r"libstdc\+\+.so\.\d+\.\d+\.\d+"), readdir(source_dir, join = true)), 1, nothing)
49+
julia_lib = joinpath(dirname(Sys.BINDIR), "lib", "julia", "libstdc++.so")
50+
for src in [julia_lib, julia_lib * julia_lib_version]
51+
islink(src) && rm(src, force = true)
52+
symlink(source_lib, src)
53+
@info read(`ls -al $src`, String)
54+
end
55+
'
3556
- uses: actions/cache@v1
3657
env:
3758
cache-name: cache-artifacts
@@ -122,4 +143,4 @@ jobs:
122143
end'
123144
env:
124145
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
125-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
146+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)