Skip to content

Commit 6e4a4a6

Browse files
KristofferCKristofferC
authored and
KristofferC
committed
Set up CI
(cherry picked from commit 56d561c)
1 parent 6c59908 commit 6e4a4a6

13 files changed

+350
-2
lines changed

.buildkite/pipeline.yml

+7
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

+49
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.10"
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.10"
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.10"
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

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

.ci/Project.toml

+9
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

+19
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

+29
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

+15
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

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest.toml
2+
Manifest-v*.*.toml
3+
docs/build

LICENSE.md

+3
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

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
33

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

99
[extras]
10-
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1110
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
11+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1212

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

docs/Project.toml

+3
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"

docs/make.jl

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using LinearAlgebra
2+
using Documenter: DocMeta, makedocs, deploydocs, HTML
3+
4+
DocMeta.setdocmeta!(LinearAlgebra, :DocTestSetup, :(using LinearAlgebra); recursive=true)
5+
6+
makedocs(
7+
modules = [LinearAlgebra],
8+
sitename = "LinearAlgebra",
9+
pages = Any[
10+
"LinearAlgebra" => "index.md",
11+
];
12+
warnonly = [:missing_docs, :cross_references],
13+
format = HTML(size_threshold = 600 * 2^10 #=600 KiB=#),
14+
)
15+
16+
deploydocs(repo = "github.com/KristofferC/LinearAlgebra.jl.git", push_preview = true)

test/runtests.jl

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This file is a part of Julia. License is MIT: https://julialang.org/license
22

33
for file in readlines(joinpath(@__DIR__, "testgroups"))
4+
@info "Testing $file"
45
include(file * ".jl")
56
end

0 commit comments

Comments
 (0)