Skip to content

Commit 3b5db68

Browse files
authored
Set runner to self-hosted (#34)
* Set runner to self-hosted * Fix runner for documentation * Enable multithreadded documentation build * Add multithreaded CI
1 parent d29da6d commit 3b5db68

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ jobs:
2626
- "1"
2727
- "lts"
2828
os:
29-
- ubuntu-latest
29+
- self-hosted
3030
arch:
3131
- x64
32+
env:
33+
JULIA_NUM_THREADS: auto
3234
steps:
3335
- uses: actions/checkout@v4
3436
- uses: julia-actions/setup-julia@v2

.github/workflows/CompatHelper.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ on:
55
workflow_dispatch:
66
jobs:
77
CompatHelper:
8-
runs-on: ubuntu-latest
8+
runs-on: [self-hosted, ubuntu-latest]
9+
env:
10+
JULIA_NUM_THREADS: auto
911
steps:
1012
- name: Pkg.add("CompatHelper")
1113
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'

.github/workflows/Documenter.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ concurrency:
2929
jobs:
3030
# Build job
3131
build:
32-
runs-on: ubuntu-20.04
32+
runs-on: self-hosted
33+
env:
34+
JULIA_NUM_THREADS: auto
3335
steps:
3436
- name: Checkout
3537
uses: actions/checkout@v4
@@ -40,7 +42,7 @@ jobs:
4042
- name: Install documentation dependencies
4143
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 libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev
4244
- name: Install custom documentation dependencies
43-
run: DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=docs -e 'using Pkg; pkg"dev ."; Pkg.instantiate(); Pkg.precompile(); Pkg.status()'
45+
run: DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --threads auto --project=docs -e 'using Pkg; pkg"dev ."; Pkg.instantiate(); Pkg.precompile(); Pkg.status()'
4446
#- name: Creating new mds from src
4547
- name: Build and deploy
4648
env:
@@ -50,4 +52,4 @@ jobs:
5052
JULIA_DEBUG: "Documenter"
5153
DATADEPS_ALWAYS_ACCEPT: true
5254
run: |
53-
DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=docs/ --color=yes docs/make.jl
55+
DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --threads auto --project=docs/ --color=yes docs/make.jl

.github/workflows/TagBot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ permissions:
2323
jobs:
2424
TagBot:
2525
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
26-
runs-on: ubuntu-latest
26+
runs-on: [self-hosted, ubuntu-latest]
2727
steps:
2828
- uses: JuliaRegistries/TagBot@v1
2929
with:

0 commit comments

Comments
 (0)