Skip to content

Commit

Permalink
Try to simplify CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Dec 19, 2023
1 parent 6a017b6 commit 6b6eed4
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ jobs:
strategy:
fail-fast: false
matrix:
version: ['1.8', '1.9', '1.10.0-beta2', 'nightly']
version: ['1.8', '1.9', '1.10.0-rc2', 'nightly']
os: [ubuntu-latest, macOS-latest, windows-latest]
arch: [x64]
steps:
- uses: actions/checkout@v4
with:
path: "GPUArrays"
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
Expand All @@ -36,16 +34,16 @@ jobs:
${{ runner.os }}-test-
${{ runner.os }}-
- name: Develop subpackages
run: julia --project=GPUArrays -e "using Pkg; Pkg.develop(ARGS)" GPUArraysCore JLArrays
env:
JULIA_PKG_DEVDIR: ${{ github.workspace }}
run: |
julia --project -e "
using Pkg
Pkg.develop([PackageSpec(; name=basename(path), path) for path in ARGS])
" lib/GPUArraysCore lib/JLArrays
- uses: julia-actions/julia-runtest@v1
with:
project: GPUArrays
continue-on-error: ${{ matrix.version == 'nightly' }}
- uses: julia-actions/julia-processcoverage@v1
with:
directories: GPUArrays/src,GPUArrays/lib
directories: src,lib
- uses: codecov/codecov-action@v3
with:
file: lcov.info
Expand All @@ -54,19 +52,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: "GPUArrays"
- uses: julia-actions/setup-julia@v1
with:
version: '1.8'
- name: Develop packages
run: julia -e "using Pkg; Pkg.develop(ARGS)" GPUArrays GPUArraysCore
env:
JULIA_PKG_DEVDIR: ${{ github.workspace }}
run: |
julia -e "
using Pkg
Pkg.develop([PackageSpec(; name=basename(path), path) for path in ARGS])
" ../GPUArrays.jl lib/GPUArraysCore
- name: Install dependencies
run: julia --project=GPUArrays/docs/ -e 'using Pkg; Pkg.instantiate()'
run: julia --project=docs/ -e 'using Pkg; Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: julia --project=GPUArrays/docs/ GPUArrays/docs/make.jl
run: julia --project=docs/ docs/make.jl

0 comments on commit 6b6eed4

Please sign in to comment.