Skip to content

Commit 413366c

Browse files
fix ci
1 parent b89b083 commit 413366c

37 files changed

+16261
-33
lines changed

.github/workflows/Documenter.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,40 @@
11
name: Documentation
2-
32
on:
43
push:
54
branches:
65
- main # update to match your development branch (master, main, dev, trunk, ...)
76
tags: '*'
87
pull_request:
9-
108
jobs:
119
build:
1210
permissions:
1311
contents: write
1412
runs-on: ubuntu-latest
1513
steps:
16-
- uses: actions/checkout@v2
17-
- uses: julia-actions/setup-julia@v1
14+
- uses: actions/checkout@v3
15+
- uses: julia-actions/setup-julia@latest
1816
with:
1917
version: '1.8'
20-
- name: Install dependencies
21-
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
18+
- uses: actions/cache@v3
19+
env:
20+
cache-name: cache-artifacts
21+
with:
22+
path: ~/.julia/artifacts
23+
key: ${{ runner.os }}-docs-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
24+
restore-keys: |
25+
${{ runner.os }}-docs-${{ env.cache-name }}-
26+
${{ runner.os }}-docs-
27+
${{ runner.os }}-
28+
- name: Install binary dependencies
29+
run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev
30+
- name: Install Julia dependencies
31+
run: >
32+
DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24'
33+
julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
2234
- name: Build and deploy
2335
env:
2436
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
2537
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
26-
run: julia --project=docs/ docs/make.jl
27-
38+
run: >
39+
DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24'
40+
julia --project=docs --color=yes docs/make.jl

.github/workflows/Formatter.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
name: format-check
2-
1+
name: FormatCheck
32
on:
43
push:
54
branches:
65
- 'main'
76
tags: '*'
87
pull_request:
9-
108
jobs:
119
build:
1210
runs-on: ${{ matrix.os }}
@@ -20,11 +18,8 @@ jobs:
2018
with:
2119
version: ${{ matrix.julia-version }}
2220

23-
- uses: actions/checkout@v1
21+
- uses: actions/checkout@v3
2422
- name: Install JuliaFormatter and format
25-
# This will use the latest version by default but you can set the version like so:
26-
#
27-
# julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter", version="0.13.0"))'
2823
run: |
2924
julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))'
3025
julia -e 'using JuliaFormatter; format(".", verbose=true)'

.github/workflows/TagBot.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ on:
44
types:
55
- created
66
workflow_dispatch:
7+
inputs:
8+
lookback:
9+
default: 3
10+
permissions:
11+
actions: read
12+
checks: read
13+
contents: write
14+
deployments: read
15+
issues: read
16+
discussions: read
17+
packages: read
18+
pages: read
19+
pull-requests: read
20+
repository-projects: read
21+
security-events: read
22+
statuses: read
723
jobs:
824
TagBot:
925
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
@@ -12,4 +28,6 @@ jobs:
1228
- uses: JuliaRegistries/TagBot@v1
1329
with:
1430
token: ${{ secrets.GITHUB_TOKEN }}
15-
ssh: ${{ secrets.DOCUMENTER_KEY }}
31+
# Edit the following line to reflect the actual name of the GitHub Secret containing your private key
32+
ssh: ${{ secrets.DOCUMENTER_KEY }}
33+
# ssh: ${{ secrets.NAME_OF_MY_SSH_PRIVATE_KEY_SECRET }}

.github/workflows/Tests.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
name: Tests
2-
32
on:
43
push:
54
branches:
65
- main # update to match your development branch (master, main, dev, trunk, ...)
76
tags: '*'
87
pull_request:
9-
108
jobs:
119
test:
1210
runs-on: ${{ matrix.os }}
@@ -16,12 +14,22 @@ jobs:
1614
julia_version: ['1.8']
1715
os: [ubuntu-latest]
1816
steps:
19-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
2018
- name: "Set up Julia"
2119
uses: julia-actions/setup-julia@latest
2220
with:
2321
version: ${{ matrix.julia_version }}
22+
- uses: actions/cache@v3
23+
env:
24+
cache-name: cache-artifacts
25+
with:
26+
path: ~/.julia/artifacts
27+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
28+
restore-keys: |
29+
${{ runner.os }}-test-${{ env.cache-name }}-
30+
${{ runner.os }}-test-
31+
${{ runner.os }}-
2432
- name: "Build package"
25-
uses: julia-actions/julia-buildpkg@v1
33+
uses: julia-actions/julia-buildpkg@latest
2634
- name: "Run tests"
27-
uses: julia-actions/julia-runtest@v1
35+
uses: julia-actions/julia-runtest@latest
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)