Skip to content

Commit

Permalink
Merge pull request #17 from JuliaPackaging/mg/github-actions
Browse files Browse the repository at this point in the history
Run CI for Linux, macOS, and Windows on GitHub Actions
  • Loading branch information
giordano authored Nov 12, 2020
2 parents 5c8a388 + 43c72ae commit 5992e49
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 3 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CI

on:
push:
branches: "master"
tags: ["*"]
pull_request:

jobs:
test:
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.julia-arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
julia-version:
- "1.3"
- "1.4"
- "1.5"
- "nightly"
os:
- ubuntu-latest
- macos-latest
- windows-latest
julia-arch:
- x64
- x86
# 32-bit Julia binaries are not available on macOS
exclude:
- os: macOS-latest
julia-arch: x86

steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- name: Cache artifacts
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 }}-
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# Documentation: http://docs.travis-ci.com/user/languages/julia/
language: julia
os:
- linux
- freebsd
- osx
- windows
julia:
- 1.3
- 1.4
Expand Down

0 comments on commit 5992e49

Please sign in to comment.