Skip to content

Reapply "Merge branch 'master' of https://github.com/bmlindor/NbodyGr… #9

Reapply "Merge branch 'master' of https://github.com/bmlindor/NbodyGr…

Reapply "Merge branch 'master' of https://github.com/bmlindor/NbodyGr… #9

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: NbodyGradient-CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches:
- master
tags: '*'
pull_request:
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test:
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
julia-version: ['1', 'lts']
os: [ubuntu-latest, macOS-latest]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
# from 'julia-runtest' GitHub action.
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
arch: 'default'
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: 'lts'
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-docdeploy@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}