Skip to content

Commit c076117

Browse files
authored
Merge pull request #28 from giordano/mg/gha
Switch CI to GitHub Actions
2 parents ee7b200 + 6461d01 commit c076117

File tree

3 files changed

+82
-39
lines changed

3 files changed

+82
-39
lines changed

.github/workflows/TagBot.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
name: TagBot
22
on:
3-
schedule:
4-
- cron: 27 8 * * *
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
57
jobs:
68
TagBot:
9+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
710
runs-on: ubuntu-latest
811
steps:
912
- uses: JuliaRegistries/TagBot@v1

.github/workflows/ci.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: "master"
6+
tags: ["*"]
7+
pull_request:
8+
release:
9+
10+
jobs:
11+
test:
12+
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.julia-arch }}
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
julia-version:
18+
- "1.0"
19+
- "1"
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@v2
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
52+
- uses: julia-actions/julia-uploadcodecov@v0.1
53+
continue-on-error: true
54+
- uses: julia-actions/julia-uploadcoveralls@v0.1
55+
continue-on-error: true
56+
57+
Documentation:
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v2
61+
- uses: julia-actions/setup-julia@latest
62+
with:
63+
version: 1
64+
- name: Cache artifacts
65+
uses: actions/cache@v2
66+
env:
67+
cache-name: cache-artifacts
68+
with:
69+
path: ~/.julia/artifacts
70+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/docs/Project.toml') }}
71+
restore-keys: |
72+
${{ runner.os }}-test-${{ env.cache-name }}-
73+
${{ runner.os }}-test-
74+
${{ runner.os }}-
75+
- uses: julia-actions/julia-docdeploy@releases/v1
76+
env:
77+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.travis.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)