File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 matrix :
1717 julia-version : ['lts', '1']
1818 julia-arch : [x64]
19- os : [ubuntu-latest,macos-latest, windows-latest]
19+ os : [ubuntu-latest,windows-latest]
2020 steps :
2121 - uses : actions/checkout@v2
2222 - uses : julia-actions/setup-julia@latest
3636 with :
3737 files : lcov.info
3838
39+ mac :
40+ strategy :
41+ matrix :
42+ julia-version : ['lts', '1']
43+ julia-arch : [aarch64]
44+ os : [macos-latest]
45+ backend : ['metal']
46+ runs-on : ${{ matrix.os }}
47+ steps :
48+ - name : Checkout code
49+ uses : actions/checkout@v2
50+ - name : Setup Julia
51+ uses : julia-actions/setup-julia@latest
52+ with :
53+ version : ${{ matrix.julia-version }}
54+ - name : Setup tests
55+ run : |
56+ julia --color=yes --project=./test -e '
57+ using Pkg
58+ Pkg.Registry.update()
59+ Pkg.develop(path=".")
60+ Pkg.instantiate()'
61+ - name : Add Metal.jl to test environment
62+ if : matrix.backend == 'metal'
63+ run : |
64+ julia --project=test -e 'using Pkg; Pkg.add("Metal")'
65+ - name : Run tests
66+ run : |
67+ julia --color=yes --project=./test -e 'include("test/runtests.jl")'
68+
3969 gpu :
4070 strategy :
4171 matrix :
Original file line number Diff line number Diff line change 3030 @info " excluding oneAPI"
3131end
3232
33+ const EXAMODELS_TEST_METAL = is_package_installed (" Metal" )
34+ if EXAMODELS_TEST_METAL
35+ @eval using Metal
36+ @eval push! (BACKENDS, MetalBackend ())
37+ @info " including Metal"
38+ else
39+ @info " excluding Metal"
40+ end
41+
3342const EXAMODELS_TEST_OPENCL = is_package_installed (" OpenCL" )
3443if EXAMODELS_TEST_OPENCL
3544 @eval begin
You can’t perform that action at this time.
0 commit comments