-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (48 loc) · 1.48 KB
/
CI.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
name: CI
on:
pull_request:
push:
branches: master
tags: '*'
jobs:
test:
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
julia-version: ['1.6', '1', 'nightly']
os: ['ubuntu-latest']
include:
- os: windows-latest
julia-version: '1'
- os: macOS-latest
julia-version: '1'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
- uses: actions/cache@v3
env:
cache-name: cache-artifacts
with:
path: |
~/.julia/artifacts
~/.julia/packages
~/.julia/registries
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@v1 # Temporary replace by the following to run tests against Ferrite#master
- run: |
julia --color=yes --project=. -e '
using Pkg
packages = [
PackageSpec(;url="https://github.com/Ferrite-FEM/Ferrite.jl.git", rev="master"),
]
Pkg.add(packages)
Pkg.instantiate()'
- uses: julia-actions/julia-runtest@v1