Skip to content

Commit

Permalink
add CI.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rfourquet committed Aug 9, 2021
1 parent 8ea4c77 commit ad092c6
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI
on:
pull_request:
push:
branches:
- 'master'
tags: '*'

jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- { os: ubuntu-latest, version: '1.0', arch: x64}
- { os: ubuntu-latest, version: '1.1', arch: x64}
- { os: ubuntu-latest, version: '1.2', arch: x64}
- { os: ubuntu-latest, version: '1.3', arch: x64}
- { os: ubuntu-latest, version: '1.4', arch: x64}
- { os: ubuntu-latest, version: '1.5', arch: x64}
- { os: ubuntu-latest, version: '1', arch: x64}
- { os: ubuntu-latest, version: '^1.7.0-0', arch: x64}
- { os: ubuntu-latest, version: 'nightly', arch: x64}
- { os: windows-latest, version: '1', arch: x64}
- { os: macOS-latest, version: '1', arch: x64}

steps:
- uses: actions/checkout@v2

- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}

- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- run: |
git config --global user.name Tester
git config --global user.email [email protected]
- uses: julia-actions/julia-runtest@latest
continue-on-error: ${{ matrix.version == 'nightly' }}

0 comments on commit ad092c6

Please sign in to comment.