-
Notifications
You must be signed in to change notification settings - Fork 32
81 lines (81 loc) · 2.63 KB
/
ci-binary-builder.yml
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
name: CI-Binary-Builder
on:
- push
- pull_request
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
#- '1.6'
- '1'
#- '~1.8.0-0'
#- 'nightly'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@latest
- run: |
git config --global user.name Tester
git config --global user.email [email protected]
- name: Remove NetCDF_jll compat section
run: |
using TOML
proj = TOML.parsefile("Project.toml")
delete!(proj["compat"],"NetCDF_jll")
open("Project.toml","w") do f
TOML.print(f,proj)
end
shell: julia --color=yes --project=@. {0}
- name: check curl
run: |
using LibCURL_jll
if Sys.isapple()
run(`otool -L $(LibCURL_jll.libcurl_path)`)
end
shell: julia --color=yes --project=@. {0}
- name: Install NetCDF_jll
run: |
using Pkg
Pkg.add(url="https://github.com/Alexander-Barth/NetCDF_jll.jl")
if Sys.isapple()
#run(`sha256sum /Users/runner/.julia/artifacts/ae95712771ea771cf8a1779162ce95329f840f1d/lib/libnetcdf.19.dylib`)
#run(`otool -L /Users/runner/.julia/artifacts/ae95712771ea771cf8a1779162ce95329f840f1d/lib/libnetcdf.19.dylib`)
end
using NetCDF_jll
@show NetCDF_jll.libnetcdf
shell: julia --color=yes --project=@. {0}
- name: Pkg Status
run: |
using Pkg
Pkg.status(;mode = PKGMODE_MANIFEST)
Pkg.add("IntervalSets")
shell: julia --color=yes --project=@. {0}
- name: Test
run: |
using NetCDF_jll, NCDatasets
@show NetCDF_jll.libnetcdf
include(joinpath(dirname(pathof(NCDatasets)),"..","test","runtests.jl"))
shell: julia --color=yes --project=@. {0}