-
Notifications
You must be signed in to change notification settings - Fork 2
93 lines (93 loc) · 3.09 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: CI
on:
merge_group:
pull_request:
push:
branches:
- main
tags: "*"
concurrency:
# Skip intermediate builds: all builds except for builds on the `main` branch
# Cancel intermediate builds: only pull request builds
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/main' || github.run_number }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
permissions:
contents: read
jobs:
finalize:
timeout-minutes: 10
needs: [test, check]
if: always()
runs-on: ubuntu-latest
steps:
- run: |
echo test: ${{ needs.test.result }}
echo check: ${{ needs.check.result }}
- run: exit 1
if: |
(needs.test.result != 'success') ||
(needs.check.result != 'success')
check:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false
- uses: julia-actions/setup-julia@3645a07f58c7f83b9f82ac8e0bb95583e69149e6 # v2.2.0
with:
version: "1"
- run: make format-check
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
julia-version:
- "1.7"
- "1.8"
- "1"
os:
- ubuntu-latest
- windows-latest
- macos-13
- macos-latest
install_general_registry:
- true
- false
exclude:
- os: macos-latest
julia-version: "1.7"
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false
- uses: julia-actions/setup-julia@3645a07f58c7f83b9f82ac8e0bb95583e69149e6 # v2.2.0
with:
version: "${{ matrix.julia-version }}"
- run: julia .ci/setup.jl # sets the `TEMP_DEPOT` environment variable
- uses: ./ # run this action
with:
juliahub_token_encoded: ${{ secrets.JULIAPRO_ENCODED_TOKEN_FOR_TESTING }}
private_registry_name: ${{ secrets.TEST_REGISTRY_NAME }}
private_registry_uuid: ${{ secrets.TEST_REGISTRY_UUID }}
install_general_registry: ${{ matrix.install_general_registry}}
env:
JULIA_PKG_SERVER: ${{ secrets.TEST_PKG_SERVER }}
JULIA_DEPOT_PATH: ${{ env.TEMP_DEPOT }}
- run: julia .ci/test_registries_general${{ matrix.install_general_registry}}.jl
env:
JULIA_PKG_SERVER: ${{ secrets.TEST_PKG_SERVER }}
JULIA_DEPOT_PATH: ${{ env.TEMP_DEPOT }}
TEST_REGISTRY_NAME: ${{ secrets.TEST_REGISTRY_NAME }}
TEST_REGISTRY_UUID: ${{ secrets.TEST_REGISTRY_UUID }}
- run: julia .ci/test_pkg_add.jl
env:
JULIA_PKG_SERVER: ${{ secrets.TEST_PKG_SERVER }}
JULIA_DEPOT_PATH: ${{ env.TEMP_DEPOT }}
TEST_PACKAGE_NAME: ${{ secrets.TEST_PACKAGE_NAME }}
TEST_PACKAGE_UUID: ${{ secrets.TEST_PACKAGE_UUID }}
- run: julia .ci/teardown.jl
env:
TEMP_DEPOT: ${{ env.TEMP_DEPOT }}