Skip to content

Commit 1a4a668

Browse files
authored
Merge pull request #157 from DilumAluthge/dpa/travis-to-gha
Transition from Travis CI to GitHub Actions CI
2 parents 9d7a788 + eb025e1 commit 1a4a668

File tree

5 files changed

+147
-27
lines changed

5 files changed

+147
-27
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI (Julia nightly)
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- staging
7+
- trying
8+
tags: '*'
9+
jobs:
10+
CI-julia-nightly:
11+
name: CI-julia-nightly
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
version:
17+
- 'nightly'
18+
os:
19+
- ubuntu-latest
20+
- macOS-latest
21+
- windows-latest
22+
arch:
23+
- x64
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: julia-actions/setup-julia@v1
27+
with:
28+
version: ${{ matrix.version }}
29+
arch: ${{ matrix.arch }}
30+
- uses: actions/cache@v1
31+
env:
32+
cache-name: cache-artifacts
33+
with:
34+
path: ~/.julia/artifacts
35+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
36+
restore-keys: |
37+
${{ runner.os }}-test-${{ env.cache-name }}-
38+
${{ runner.os }}-test-
39+
${{ runner.os }}-
40+
- uses: julia-actions/julia-buildpkg@v1
41+
- uses: julia-actions/julia-runtest@v1
42+
- uses: julia-actions/julia-processcoverage@v1
43+
- uses: codecov/codecov-action@v1
44+
with:
45+
file: lcov.info

.github/workflows/ci.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- staging
7+
- trying
8+
tags: '*'
9+
jobs:
10+
CI:
11+
name: CI
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
version:
17+
- '1.3'
18+
- '1.4'
19+
- '1.5'
20+
- '1' # automatically expands to the latest stable 1.x release of Julia.
21+
os:
22+
- ubuntu-latest
23+
- macOS-latest
24+
- windows-latest
25+
arch:
26+
- x64
27+
steps:
28+
- uses: actions/checkout@v2
29+
- uses: julia-actions/setup-julia@v1
30+
with:
31+
version: ${{ matrix.version }}
32+
arch: ${{ matrix.arch }}
33+
- uses: actions/cache@v1
34+
env:
35+
cache-name: cache-artifacts
36+
with:
37+
path: ~/.julia/artifacts
38+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
39+
restore-keys: |
40+
${{ runner.os }}-test-${{ env.cache-name }}-
41+
${{ runner.os }}-test-
42+
${{ runner.os }}-
43+
- uses: julia-actions/julia-buildpkg@v1
44+
- uses: julia-actions/julia-runtest@v1
45+
- uses: julia-actions/julia-processcoverage@v1
46+
- uses: codecov/codecov-action@v1
47+
with:
48+
file: lcov.info
49+
docs:
50+
name: Documentation
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v2
54+
- uses: julia-actions/setup-julia@v1
55+
with:
56+
version: '1'
57+
- run: julia --color=yes -e 'using Pkg; VERSION >= v"1.5-" && !isdir(joinpath(DEPOT_PATH[1], "registries", "General")) && Pkg.Registry.add("General")'
58+
shell: bash
59+
env:
60+
JULIA_PKG_SERVER: ""
61+
- run: |
62+
julia --project=docs -e '
63+
using Pkg
64+
Pkg.develop(PackageSpec(path=pwd()))
65+
Pkg.instantiate()'
66+
- run: julia --project=docs docs/make.jl
67+
env:
68+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
70+
doctests:
71+
name: Doctests
72+
runs-on: ubuntu-latest
73+
steps:
74+
- uses: actions/checkout@v2
75+
- uses: julia-actions/setup-julia@v1
76+
with:
77+
version: 'nightly'
78+
- run: julia --color=yes -e 'using Pkg; VERSION >= v"1.5-" && !isdir(joinpath(DEPOT_PATH[1], "registries", "General")) && Pkg.Registry.add("General")'
79+
shell: bash
80+
env:
81+
JULIA_PKG_SERVER: ""
82+
- run: |
83+
julia --project=docs -e '
84+
using Pkg
85+
Pkg.develop(PackageSpec(path=pwd()))
86+
Pkg.instantiate()'
87+
- run: |
88+
julia --project=docs -e '
89+
using Documenter: doctest
90+
using KernelAbstractions
91+
doctest(KernelAbstractions)'

.travis.yml

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

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@ KernelAbstractions.jl
22
==============
33
*Ash dushum durbatulûk, ash dushum gimbatul, ash dushum thrakatulûk, agh burzum-ishi krimpatul*
44

5-
[![][docs-latest-img]][docs-latest-url] [![DOI](https://zenodo.org/badge/237471203.svg)](https://zenodo.org/badge/latestdoi/237471203)
6-
7-
5+
[![Documentation (latest)][docs-latest-img]][docs-latest-url]
6+
[![DOI][doi-img]][doi-url]
7+
[![CI][ci-img]][ci-url]
8+
[![CI (Julia nightly)][ci-julia-nightly-img]][ci-julia-nightly-url]]
89

910
[docs-latest-img]: https://img.shields.io/badge/docs-latest-blue.svg
1011
[docs-latest-url]: https://juliagpu.gitlab.io/KernelAbstractions.jl/
12+
[doi-img]: https://zenodo.org/badge/237471203.svg
13+
[doi-url]: https://zenodo.org/badge/latestdoi/237471203
14+
[ci-img]: https://github.com/JuliaGPU/KernelAbstractions.jl/workflows/CI/badge.svg
15+
[ci-url]: https://github.com/JuliaGPU/KernelAbstractions.jl/actions?query=workflow%3ACI
16+
[ci-julia-nightly-img]: https://github.com/JuliaGPU/KernelAbstractions.jl/workflows/CI%20(Julia%20nightly)/badge.svg
17+
[ci-julia-nightly-url]: https://github.com/JuliaGPU/KernelAbstractions.jl/actions?query=workflow%3A%22CI+%28Julia+nightly%29%22
1118

1219
License
1320
-------

bors.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
status = [
22
"ci/gitlab/%",
3-
"continuous-integration/travis-ci/push"
3+
"CI",
44
]

0 commit comments

Comments
 (0)