Skip to content

Commit aad56a1

Browse files
KristofferCKristofferC
authored and
KristofferC
committed
Set up CI
(cherry picked from commit 56d561c)
1 parent 72d1a8f commit aad56a1

13 files changed

+378
-2
lines changed

.buildkite/pipeline.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
steps:
3+
- label: ":rocket: Launch test jobs"
4+
command: buildkite-agent pipeline upload ./.buildkite/runtests.yml
5+
agents:
6+
queue: "julia"
7+
os: "linux"

.buildkite/runtests.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
steps:
3+
# Linux x86_64
4+
- label: ":linux: linux-x86_64"
5+
plugins:
6+
# Julia installation outside the sandbox
7+
- JuliaCI/julia#v1:
8+
version: '1.10'
9+
- staticfloat/sandbox#v2:
10+
rootfs_url: https://github.com/JuliaCI/rootfs-images/releases/download/v6.00/package_linux.x86_64.tar.gz
11+
rootfs_treehash: "4dcde853eb5baaa0a8f087b633eaf955dc94b5dc"
12+
uid: 1000
13+
gid: 1000
14+
# Julia installation inside the sandbox
15+
- JuliaCI/julia#v1:
16+
version: "1.11"
17+
command: |
18+
julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()'
19+
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl
20+
agents:
21+
queue: "julia"
22+
os: "linux"
23+
arch: "x86_64"
24+
cpuset_limited: "true"
25+
timeout_in_minutes: 120
26+
# macOS aarch64
27+
- label: ":macos: macos-aarch64"
28+
plugins:
29+
- JuliaCI/julia#v1:
30+
version: "1.11"
31+
command: |
32+
julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()'
33+
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl
34+
agents:
35+
queue: "julia"
36+
os: "macos"
37+
arch: "aarch64"
38+
# windows x86_64
39+
- label: ":windows: windows-x86_64"
40+
plugins:
41+
- JuliaCI/julia#v1:
42+
version: "1.11"
43+
command: |
44+
julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()'
45+
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl
46+
agents:
47+
queue: "julia"
48+
os: "windows"
49+
arch: "x86_64"

.ci/Manifest.toml

Lines changed: 222 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,222 @@
1+
# This file is machine-generated - editing it directly is not advised
2+
3+
julia_version = "1.11.1"
4+
manifest_format = "2.0"
5+
project_hash = "7ebf32dcf9a4cee2984390e78b55d94bdfcf7b2f"
6+
7+
[[deps.ArgTools]]
8+
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f"
9+
version = "1.1.2"
10+
11+
[[deps.Artifacts]]
12+
uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
13+
version = "1.11.0"
14+
15+
[[deps.Base64]]
16+
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
17+
version = "1.11.0"
18+
19+
[[deps.CompilerSupportLibraries_jll]]
20+
deps = ["Artifacts", "Libdl"]
21+
uuid = "e66e0078-7015-5450-92f7-15fbd957f2ae"
22+
version = "1.1.1+0"
23+
24+
[[deps.Dates]]
25+
deps = ["Printf"]
26+
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a"
27+
version = "1.11.0"
28+
29+
[[deps.Distributed]]
30+
deps = ["Random", "Serialization", "Sockets"]
31+
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b"
32+
version = "1.11.0"
33+
34+
[[deps.Downloads]]
35+
deps = ["ArgTools", "FileWatching", "LibCURL", "NetworkOptions"]
36+
uuid = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
37+
version = "1.6.0"
38+
39+
[[deps.FileWatching]]
40+
uuid = "7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee"
41+
version = "1.11.0"
42+
43+
[[deps.Glob]]
44+
git-tree-sha1 = "97285bbd5230dd766e9ef6749b80fc617126d496"
45+
uuid = "c27321d9-0574-5035-807b-f59d2c89b15c"
46+
version = "1.3.1"
47+
48+
[[deps.InteractiveUtils]]
49+
deps = ["Markdown"]
50+
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
51+
version = "1.11.0"
52+
53+
[[deps.LazyArtifacts]]
54+
deps = ["Artifacts", "Pkg"]
55+
uuid = "4af54fe1-eca0-43a8-85a7-787d91b784e3"
56+
version = "1.11.0"
57+
58+
[[deps.LibCURL]]
59+
deps = ["LibCURL_jll", "MozillaCACerts_jll"]
60+
uuid = "b27032c2-a3e7-50c8-80cd-2d36dbcbfd21"
61+
version = "0.6.4"
62+
63+
[[deps.LibCURL_jll]]
64+
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll", "Zlib_jll", "nghttp2_jll"]
65+
uuid = "deac9b47-8bc7-5906-a0fe-35ac56dc84c0"
66+
version = "8.6.0+0"
67+
68+
[[deps.LibGit2]]
69+
deps = ["Base64", "LibGit2_jll", "NetworkOptions", "Printf", "SHA"]
70+
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"
71+
version = "1.11.0"
72+
73+
[[deps.LibGit2_jll]]
74+
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll"]
75+
uuid = "e37daf67-58a4-590a-8e99-b0245dd2ffc5"
76+
version = "1.7.2+0"
77+
78+
[[deps.LibSSH2_jll]]
79+
deps = ["Artifacts", "Libdl", "MbedTLS_jll"]
80+
uuid = "29816b5a-b9ab-546f-933c-edad1886dfa8"
81+
version = "1.11.0+1"
82+
83+
[[deps.Libdl]]
84+
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
85+
version = "1.11.0"
86+
87+
[[deps.LinearAlgebra]]
88+
deps = ["Libdl", "OpenBLAS_jll", "libblastrampoline_jll"]
89+
path = ".."
90+
uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
91+
version = "1.11.0"
92+
93+
[[deps.Logging]]
94+
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"
95+
version = "1.11.0"
96+
97+
[[deps.Markdown]]
98+
deps = ["Base64"]
99+
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
100+
version = "1.11.0"
101+
102+
[[deps.MbedTLS_jll]]
103+
deps = ["Artifacts", "Libdl"]
104+
uuid = "c8ffd9c3-330d-5841-b78e-0817d7145fa1"
105+
version = "2.28.6+0"
106+
107+
[[deps.MozillaCACerts_jll]]
108+
uuid = "14a3606d-f60d-562e-9121-12d972cd8159"
109+
version = "2023.12.12"
110+
111+
[[deps.NetworkOptions]]
112+
uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908"
113+
version = "1.2.0"
114+
115+
[[deps.OpenBLAS_jll]]
116+
deps = ["Artifacts", "CompilerSupportLibraries_jll", "Libdl"]
117+
uuid = "4536629a-c528-5b80-bd46-f80d51c5b363"
118+
version = "0.3.27+1"
119+
120+
[[deps.PackageCompiler]]
121+
deps = ["Artifacts", "Glob", "LazyArtifacts", "Libdl", "Pkg", "Printf", "RelocatableFolders", "TOML", "UUIDs", "p7zip_jll"]
122+
git-tree-sha1 = "946623a388d8cb5874a0e2cb062dbbcfbb90cea5"
123+
repo-rev = "master"
124+
repo-url = "https://github.com/JuliaLang/PackageCompiler.jl.git"
125+
uuid = "9b87118b-4619-50d2-8e1e-99f35a4d4d9d"
126+
version = "2.1.24"
127+
128+
[[deps.Pkg]]
129+
deps = ["Artifacts", "Dates", "Downloads", "FileWatching", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "Random", "SHA", "TOML", "Tar", "UUIDs", "p7zip_jll"]
130+
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
131+
version = "1.11.0"
132+
weakdeps = ["REPL"]
133+
134+
[deps.Pkg.extensions]
135+
REPLExt = "REPL"
136+
137+
[[deps.Printf]]
138+
deps = ["Unicode"]
139+
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7"
140+
version = "1.11.0"
141+
142+
[[deps.REPL]]
143+
deps = ["InteractiveUtils", "Markdown", "Sockets", "StyledStrings", "Unicode"]
144+
uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
145+
version = "1.11.0"
146+
147+
[[deps.Random]]
148+
deps = ["SHA"]
149+
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
150+
version = "1.11.0"
151+
152+
[[deps.RelocatableFolders]]
153+
deps = ["SHA", "Scratch"]
154+
git-tree-sha1 = "ffdaf70d81cf6ff22c2b6e733c900c3321cab864"
155+
uuid = "05181044-ff0b-4ac5-8273-598c1e38db00"
156+
version = "1.0.1"
157+
158+
[[deps.SHA]]
159+
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
160+
version = "0.7.0"
161+
162+
[[deps.Scratch]]
163+
deps = ["Dates"]
164+
git-tree-sha1 = "3bac05bc7e74a75fd9cba4295cde4045d9fe2386"
165+
uuid = "6c6a2e73-6563-6170-7368-637461726353"
166+
version = "1.2.1"
167+
168+
[[deps.Serialization]]
169+
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
170+
version = "1.11.0"
171+
172+
[[deps.Sockets]]
173+
uuid = "6462fe0b-24de-5631-8697-dd941f90decc"
174+
version = "1.11.0"
175+
176+
[[deps.StyledStrings]]
177+
uuid = "f489334b-da3d-4c2e-b8f0-e476e12c162b"
178+
version = "1.11.0"
179+
180+
[[deps.TOML]]
181+
deps = ["Dates"]
182+
uuid = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
183+
version = "1.0.3"
184+
185+
[[deps.Tar]]
186+
deps = ["ArgTools", "SHA"]
187+
uuid = "a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e"
188+
version = "1.10.0"
189+
190+
[[deps.Test]]
191+
deps = ["InteractiveUtils", "Logging", "Random", "Serialization"]
192+
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
193+
version = "1.11.0"
194+
195+
[[deps.UUIDs]]
196+
deps = ["Random", "SHA"]
197+
uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
198+
version = "1.11.0"
199+
200+
[[deps.Unicode]]
201+
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
202+
version = "1.11.0"
203+
204+
[[deps.Zlib_jll]]
205+
deps = ["Libdl"]
206+
uuid = "83775a58-1f1d-513f-b197-d71354ab007a"
207+
version = "1.2.13+1"
208+
209+
[[deps.libblastrampoline_jll]]
210+
deps = ["Artifacts", "Libdl"]
211+
uuid = "8e850b90-86db-534c-a0d3-1478176c7d93"
212+
version = "5.11.0+0"
213+
214+
[[deps.nghttp2_jll]]
215+
deps = ["Artifacts", "Libdl"]
216+
uuid = "8e850ede-7688-5339-a07c-302acd2aaf8d"
217+
version = "1.59.0+0"
218+
219+
[[deps.p7zip_jll]]
220+
deps = ["Artifacts", "Libdl"]
221+
uuid = "3f19e933-33d8-53b3-aaab-bd5110c3b7a0"
222+
version = "17.4.0+2"

.ci/Project.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[deps]
2+
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
3+
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
4+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
5+
PackageCompiler = "9b87118b-4619-50d2-8e1e-99f35a4d4d9d"
6+
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
7+
REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
8+
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
9+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

.ci/create_sysimage_and_run_tests.jl

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using PackageCompiler
2+
3+
sysimage = tempname()
4+
5+
if haskey(ENV, "BUILDKITE")
6+
ncores = Sys.CPU_THREADS
7+
else
8+
ncores = ceil(Int, Sys.CPU_THREADS / 2)
9+
end
10+
11+
withenv("JULIA_IMAGE_THREADS" => ncores) do
12+
create_sysimage(["LinearAlgebra", "Test", "Distributed", "Dates", "REPL", "Printf", "Random"]; sysimage_path=sysimage, incremental=false, filter_stdlibs=true)
13+
end
14+
15+
current_dir = @__DIR__
16+
cmd = """Base.runtests(["LinearAlgebra"]; propagate_project=true, ncores=$ncores)"""
17+
withenv("JULIA_NUM_THREADS" => 1) do
18+
run(`$(Base.julia_cmd()) --sysimage=$sysimage --project=$current_dir -e $cmd`)
19+
end

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- 'master'
7+
- 'release-*'
8+
tags: '*'
9+
concurrency:
10+
# Skip intermediate builds: all builds except for builds on the `main` or `release-*` branches
11+
# Cancel intermediate builds: only pull request builds
12+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-') || github.run_number }}
13+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
14+
jobs:
15+
docs:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: julia-actions/setup-julia@v2
20+
with:
21+
version: 'nightly'
22+
- name: Generate docs
23+
run: |
24+
julia --project --color=yes -e ''
25+
julia --project --color=yes -e 'using Pkg; Pkg.respect_sysimage_versions(false); Pkg.activate("docs"); Pkg.develop(PackageSpec(path = pwd()))'
26+
julia --project=docs --color=yes docs/make.jl
27+
env:
28+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/tagbot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: TagBot
2+
on:
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
7+
jobs:
8+
TagBot:
9+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: JuliaRegistries/TagBot@v1
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}
15+
ssh: ${{ secrets.DOCUMENTER_KEY }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest.toml
2+
Manifest-v*.*.toml
3+
docs/build

LICENSE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
The code in this repository is part of the Julia project. See the LICENSE file in the Julia project:
2+
3+
https://github.com/JuliaLang/julia/blob/master/LICENSE.md

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ version = "1.11.0"
44

55
[deps]
66
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
7-
libblastrampoline_jll = "8e850b90-86db-534c-a0d3-1478176c7d93"
87
OpenBLAS_jll = "4536629a-c528-5b80-bd46-f80d51c5b363"
8+
libblastrampoline_jll = "8e850b90-86db-534c-a0d3-1478176c7d93"
99

1010
[extras]
11-
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1211
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
12+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1313

1414
[targets]
1515
test = ["Test", "Random"]

docs/Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

0 commit comments

Comments
 (0)