Skip to content

Commit 5992e49

Browse files
authored
Merge pull request #17 from JuliaPackaging/mg/github-actions
Run CI for Linux, macOS, and Windows on GitHub Actions
2 parents 5c8a388 + 43c72ae commit 5992e49

File tree

2 files changed

+51
-3
lines changed

2 files changed

+51
-3
lines changed

.github/workflows/ci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: "master"
6+
tags: ["*"]
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.julia-arch }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
julia-version:
17+
- "1.3"
18+
- "1.4"
19+
- "1.5"
20+
- "nightly"
21+
os:
22+
- ubuntu-latest
23+
- macos-latest
24+
- windows-latest
25+
julia-arch:
26+
- x64
27+
- x86
28+
# 32-bit Julia binaries are not available on macOS
29+
exclude:
30+
- os: macOS-latest
31+
julia-arch: x86
32+
33+
steps:
34+
- uses: actions/checkout@v2
35+
- uses: julia-actions/setup-julia@v1
36+
with:
37+
version: ${{ matrix.julia-version }}
38+
arch: ${{ matrix.julia-arch }}
39+
- name: Cache artifacts
40+
uses: actions/cache@v1
41+
env:
42+
cache-name: cache-artifacts
43+
with:
44+
path: ~/.julia/artifacts
45+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
46+
restore-keys: |
47+
${{ runner.os }}-test-${{ env.cache-name }}-
48+
${{ runner.os }}-test-
49+
${{ runner.os }}-
50+
- uses: julia-actions/julia-buildpkg@latest
51+
- uses: julia-actions/julia-runtest@latest

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
# Documentation: http://docs.travis-ci.com/user/languages/julia/
22
language: julia
33
os:
4-
- linux
54
- freebsd
6-
- osx
7-
- windows
85
julia:
96
- 1.3
107
- 1.4

0 commit comments

Comments
 (0)