ci: add a github action ci to test Rust std::autodiff #8380
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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.10' | |
| - '1.11' | |
| os: | |
| - ubuntu-latest | |
| - macOS-latest | |
| arch: | |
| - 'default' | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/checkout@v5 | |
| with: | |
| repository: 'EnzymeAD/Enzyme.jl' | |
| path: ./jl | |
| ref: main | |
| - uses: julia-actions/setup-julia@v2 | |
| with: | |
| version: ${{ matrix.version }} | |
| arch: ${{ matrix.arch }} | |
| - uses: julia-actions/cache@v2 | |
| - name: Build libEnzyme | |
| if: ${{ matrix.os != 'macOS-latest'}} | |
| run: | | |
| julia --color=yes --project=jl/deps -e 'using Pkg; Pkg.instantiate()' | |
| julia --color=yes --project=jl/deps jl/deps/build_local.jl ./enzyme | |
| - name: Build libEnzyme MacOS | |
| if: ${{ matrix.os == 'macOS-latest'}} | |
| run: | | |
| julia --color=yes --project=jl/deps -e 'using Pkg; Pkg.instantiate()' | |
| SDKROOT=`xcrun --show-sdk-path` julia --color=yes --project=jl/deps jl/deps/build_local.jl ./enzyme | |
| - name: Dev EnzymeCore | |
| run: julia --color=yes --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 |