Skip to content

Commit 7a0a55f

Browse files
committed
up CI stuff
1 parent 840f7a2 commit 7a0a55f

2 files changed

Lines changed: 22 additions & 27 deletions

File tree

.github/workflows/CI.yml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
name: CI
2-
32
on:
43
push:
54
branches:
65
- main
76
tags: '*'
87
pull_request:
9-
108
env:
119
JULIA_PKG_SERVER: https://internal.juliahub.com/
12-
1310
jobs:
1411
test:
1512
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -18,29 +15,26 @@ jobs:
1815
fail-fast: false
1916
matrix:
2017
version:
21-
- '1.10'
18+
- '1'
2219
os:
2320
- ubuntu-latest
21+
# - macOS-latest
2422
arch:
2523
- x64
2624
steps:
27-
- name: Set debug env
28-
run: export JULIA_DEBUG="loading"
29-
- uses: actions/checkout@v3.3.0
25+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
26+
name: Checkout
3027
- uses: julia-actions/cache@v1
3128
- uses: julia-actions/setup-julia@v1
3229
with:
3330
version: ${{ matrix.version }}
3431
arch: ${{ matrix.arch }}
35-
- uses: PumasAI/add-private-registry@main
32+
- name: "Set up private JuliaHub registries"
33+
uses: "JuliaComputing/set-up-private-juliahub-registries@v2.0.0"
3634
with:
37-
juliahub_token_encoded: ${{ secrets.JULIAHUB_TOKEN_ENCODED }}
38-
private_registry_name: JuliaHubRegistry
39-
private_registry_uuid: de52bcdf-fcb2-40cf-a397-3d64b64f4d9c
35+
encoded-juliahub-token: "${{ secrets.JULIAHUB_TOKEN_ENCODED }}"
36+
ssh-key: "${{ secrets.JULIASIM_REGISTRY_SSH_KEY }}"
4037
- uses: julia-actions/julia-buildpkg@v1
41-
- uses: julia-actions/julia-runtest@v1
42-
- uses: julia-actions/julia-processcoverage@v1
43-
- uses: codecov/codecov-action@v4
44-
with:
45-
token: ${{ secrets.CODECOV_TOKEN }}
46-
if: matrix.os == 'ubuntu-latest' && matrix.arch == 'x64'
38+
- name: Run tests with virtual display
39+
run: DISPLAY=:0 xvfb-run --auto-servernum -s '-screen 0 1024x768x24' julia --project -e 'using Pkg; Pkg.test()'
40+
continue-on-error: ${{ matrix.version == '1.6' }}

.github/workflows/Documentation.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,24 @@ on:
1212
env:
1313
JULIA_PKG_SERVER: https://internal.juliahub.com/
1414

15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
1518
jobs:
1619
build:
17-
permissions:
18-
contents: write
19-
statuses: write
20-
runs-on: ubuntu-latest
20+
runs-on: [self-hosted-juliasim-docs]
2121
steps:
22-
- uses: actions/checkout@v3.3.0
22+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
23+
name: Checkout
2324
- uses: julia-actions/cache@v1
2425
- uses: julia-actions/setup-julia@latest
2526
with:
26-
version: '1.10'
27-
- uses: PumasAI/add-private-registry@main
27+
version: '1'
28+
- name: "Set up private JuliaHub registries"
29+
uses: "JuliaComputing/set-up-private-juliahub-registries@v2.0.0"
2830
with:
29-
juliahub_token_encoded: ${{ secrets.JULIAHUB_TOKEN_ENCODED }}
30-
private_registry_name: JuliaHubRegistry
31-
private_registry_uuid: de52bcdf-fcb2-40cf-a397-3d64b64f4d9c
31+
encoded-juliahub-token: "${{ secrets.JULIAHUB_TOKEN_ENCODED }}"
32+
ssh-key: "${{ secrets.JULIASIM_REGISTRY_SSH_KEY }}"
3233
- name: Install dependencies
3334
run: DISPLAY=:0 xvfb-run --auto-servernum -s '-screen 0 1024x768x24' julia --project=docs -e 'using Pkg;
3435
Pkg.add(PackageSpec(name = "ModelingToolkitStandardLibrary", url = "https://github.com/SciML/ModelingToolkitStandardLibrary.jl", rev = "main"));

0 commit comments

Comments
 (0)