Skip to content

Commit

Permalink
Move CI from Travis to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
oschulz committed Feb 9, 2021
1 parent cbd4141 commit 77ed3c1
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 53 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,18 @@ name: CompatHelper
on:
schedule:
- cron: '00 00 * * *'
issues:
types: [opened, reopened]
push:
branches:
- actions/trigger/CompatHelper

workflow_dispatch:
jobs:
CompatHelper:
runs-on: ubuntu-latest
steps:
- uses: julia-actions/setup-julia@latest
with:
version: 1.4
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
run: julia -e 'using CompatHelper; CompatHelper.main()'
8 changes: 6 additions & 2 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: TagBot
on:
schedule:
- cron: 0 * * * *
issue_comment:
types:
- created
workflow_dispatch:
jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
62 changes: 62 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: CI

on:
push:
branches:
- master
- dev
- 'releases/**'
tags: '*'
pull_request:
release:

jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.version == 'nightly' }}
strategy:
fail-fast: false
matrix:
version:
- '1.0'
- '1'
- 'nightly'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
- x86
exclude:
# 32-bit Julia binaries are not available on macOS
- os: macOS-latest
arch: x86
- os: windows-latest
arch: x86
- version: nightly
arch: x86
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- name: Cache artifacts
uses: actions/cache@v2
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
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
*.jl.*.cov
*.jl.mem
.ipynb_checkpoints
.vscode
Manifest.toml
43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# UnsafeArrays.jl

[![Build Status](https://travis-ci.com/JuliaArrays/UnsafeArrays.jl.svg?branch=master)](https://travis-ci.com/JuliaArrays/UnsafeArrays.jl)
[![codecov](https://codecov.io/gh/JuliaArrays/UnsafeArrays.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaArrays/UnsafeArrays.jl)
[![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](LICENSE.md)
[![Build Status](https://github.com/JuliaArrays/UnsafeArrays.jl/workflows/CI/badge.svg?branch=master)](https://github.com/JuliaArrays/UnsafeArrays.jl/actions?query=workflow%3ACI)
[![Codecov](https://codecov.io/gh/JuliaArrays/UnsafeArrays.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaArrays/UnsafeArrays.jl)

UnsafeArrays provides stack-allocated pointer-based array views for Julia.

Expand Down

0 comments on commit 77ed3c1

Please sign in to comment.