Skip to content

Commit 3c23556

Browse files
committed
use reusable workflow
1 parent 9f9b70e commit 3c23556

3 files changed

Lines changed: 43 additions & 50 deletions

File tree

.github/workflows/CI.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
test_args:
7+
required: true
8+
type: string
9+
10+
jobs:
11+
test:
12+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
version:
18+
- "1" # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
19+
- "pre"
20+
os:
21+
- ubuntu-latest
22+
arch:
23+
- default
24+
steps:
25+
- uses: actions/checkout@v5
26+
- uses: julia-actions/setup-julia@v2
27+
with:
28+
version: ${{ matrix.version }}
29+
arch: ${{ matrix.arch }}
30+
- uses: julia-actions/cache@v2
31+
- uses: julia-actions/julia-buildpkg@v1
32+
- uses: julia-actions/julia-runtest@v1
33+
with:
34+
test_args: ${{ inputs.test_args }}
35+
coverage: false

.github/workflows/CI_dev.yml

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,8 @@ on:
66
pull_request:
77
schedule:
88
- cron: '15 2 * * *' # 2:15 AM UTC every day
9+
910
jobs:
10-
test:
11-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
12-
runs-on: ${{ matrix.os }}
13-
strategy:
14-
fail-fast: false
15-
matrix:
16-
version:
17-
- "1" # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
18-
- "pre"
19-
os:
20-
- ubuntu-latest
21-
arch:
22-
- default
23-
steps:
24-
- uses: actions/checkout@v5
25-
- uses: julia-actions/setup-julia@v2
26-
with:
27-
version: ${{ matrix.version }}
28-
arch: ${{ matrix.arch }}
29-
- uses: julia-actions/cache@v2
30-
- uses: julia-actions/julia-buildpkg@v1
31-
- uses: julia-actions/julia-runtest@v1
32-
with:
33-
test_args: '--verbose dev'
34-
coverage: false
11+
uses: ./github/workflows/CI.yml
12+
with:
13+
test_args: "--verbose release"

.github/workflows/CI_release.yml

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,8 @@ on:
66
pull_request:
77
schedule:
88
- cron: '15 2 * * *' # 2:15 AM UTC every day
9+
910
jobs:
10-
test:
11-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
12-
runs-on: ${{ matrix.os }}
13-
strategy:
14-
fail-fast: false
15-
matrix:
16-
version:
17-
- "1" # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
18-
- "pre"
19-
os:
20-
- ubuntu-latest
21-
arch:
22-
- default
23-
steps:
24-
- uses: actions/checkout@v5
25-
- uses: julia-actions/setup-julia@v2
26-
with:
27-
version: ${{ matrix.version }}
28-
arch: ${{ matrix.arch }}
29-
- uses: julia-actions/cache@v2
30-
- uses: julia-actions/julia-buildpkg@v1
31-
- uses: julia-actions/julia-runtest@v1
32-
with:
33-
test_args: '--verbose release'
34-
coverage: false
11+
uses: ./github/workflows/CI.yml
12+
with:
13+
test_args: "--verbose release"

0 commit comments

Comments
 (0)