-
Notifications
You must be signed in to change notification settings - Fork 109
59 lines (56 loc) · 1.51 KB
/
enzyme-julia.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
name: Julia Enzyme CI
on:
push:
branches:
- main
pull_request:
branches:
- main
merge_group:
jobs:
build:
name: Enzyme CI Julia ${{ matrix.version }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.version == 'nightly' }}
strategy:
fail-fast: false
matrix:
version:
- '1.6'
- '1.7'
- '1.8'
os:
- ubuntu-latest
- macOS-latest
arch:
- x64
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: 'wsmoses/Enzyme.jl'
path: ./jl
ref: main
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- name: Build libEnzyme
if: ${{ matrix.os != 'macOS-latest'}}
run: |
julia --project=jl/deps -e 'using Pkg; Pkg.instantiate()'
julia --project=jl/deps jl/deps/build_local.jl ./enzyme
- name: Build libEnzyme MacOS
if: ${{ matrix.os == 'macOS-latest'}}
run: |
julia --project=jl/deps -e 'using Pkg; Pkg.instantiate()'
SDKROOT=`xcrun --show-sdk-path` julia --project=jl/deps jl/deps/build_local.jl ./enzyme
- name: Dev EnzymeCore
run: julia --project=jl -e 'using Pkg; Pkg.develop(path="jl/lib/EnzymeCore")'
- uses: julia-actions/julia-buildpkg@v1
with:
project: jl
- uses: julia-actions/julia-runtest@v1
with:
project: jl