diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index f0fa494..1f8a579 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -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()' diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml index d77d3a0..f49313b 100644 --- a/.github/workflows/TagBot.yml +++ b/.github/workflows/TagBot.yml @@ -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 }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9ede802 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.gitignore b/.gitignore index 318e444..d0b53d9 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ *.jl.*.cov *.jl.mem .ipynb_checkpoints +.vscode Manifest.toml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index eb3eb08..0000000 --- a/.travis.yml +++ /dev/null @@ -1,43 +0,0 @@ -## Documentation: http://docs.travis-ci.com/user/languages/julia/ - -language: julia - -os: - - linux - - osx - - windows - -julia: - - 1.0 - - 1.5 - - nightly - -arch: - - amd64 - - x86 - -branches: - only: - - master - - dev - - /^release-.*$/ - - /^v\d+\.\d+(\.\d+)?(-\S*)?$/ - -notifications: - email: false - -after_success: - # push coverage results to Codecov - - julia -e 'import Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())' - # push coverage results to Coveralls - - julia -e 'import Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())' - -jobs: - #allow_failures: - # - julia: nightly - #fast_finish: true - exclude: - - os: osx - arch: x86 - - os: windows - arch: x86 diff --git a/README.md b/README.md index 9a8ad4a..cb3894e 100644 --- a/README.md +++ b/README.md @@ -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.