-
-
Notifications
You must be signed in to change notification settings - Fork 33
WIP: Set up CI etc #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
3c8d69b
enable CI (still need to do the sysimage rebuilding)
KristofferC 7d769c9
Update .github/workflows/ci.yml
KristofferC 144ea47
push preview
KristofferC 26e00f0
updates
KristofferC 9c69547
initial bk stuff
fredrikekre 78185b2
bump PackageCompiler version
KristofferC e71c9d4
run with more cores on apple
KristofferC 3280bc6
rm unused files
fredrikekre 4a6a0a9
limit cpus on linux
fredrikekre 88f083a
revert thingy
KristofferC d8c89c7
windows
fredrikekre 5a20b2a
run with more cores on buildkite
KristofferC 028cb5d
Increase linux testing timeout to 120 minutes
fredrikekre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
steps: | ||
- label: ":rocket: Launch test jobs" | ||
command: buildkite-agent pipeline upload ./.buildkite/runtests.yml | ||
agents: | ||
queue: "julia" | ||
os: "linux" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
steps: | ||
# Linux x86_64 | ||
- label: ":linux: linux-x86_64" | ||
plugins: | ||
# Julia installation outside the sandbox | ||
- JuliaCI/julia#v1: | ||
version: '1.10' | ||
- staticfloat/sandbox#v2: | ||
rootfs_url: https://github.com/JuliaCI/rootfs-images/releases/download/v6.00/package_linux.x86_64.tar.gz | ||
rootfs_treehash: "4dcde853eb5baaa0a8f087b633eaf955dc94b5dc" | ||
uid: 1000 | ||
gid: 1000 | ||
# Julia installation inside the sandbox | ||
- JuliaCI/julia#v1: | ||
version: "nightly" | ||
command: | | ||
julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()' | ||
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl | ||
agents: | ||
queue: "julia" | ||
os: "linux" | ||
arch: "x86_64" | ||
cpuset_limited: "true" | ||
timeout_in_minutes: 120 | ||
# macOS aarch64 | ||
- label: ":macos: macos-aarch64" | ||
plugins: | ||
- JuliaCI/julia#v1: | ||
version: "nightly" | ||
command: | | ||
julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()' | ||
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl | ||
agents: | ||
queue: "julia" | ||
os: "macos" | ||
arch: "aarch64" | ||
# windows x86_64 | ||
- label: ":windows: windows-x86_64" | ||
plugins: | ||
- JuliaCI/julia#v1: | ||
version: "nightly" | ||
command: | | ||
julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()' | ||
julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl | ||
agents: | ||
queue: "julia" | ||
os: "windows" | ||
arch: "x86_64" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,227 @@ | ||
# This file is machine-generated - editing it directly is not advised | ||
|
||
julia_version = "1.12.0-DEV" | ||
manifest_format = "2.0" | ||
project_hash = "edd5708cecf8de588063d2c49bdb51fd086a753c" | ||
|
||
[[deps.ArgTools]] | ||
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f" | ||
version = "1.1.2" | ||
|
||
[[deps.Artifacts]] | ||
uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33" | ||
version = "1.11.0" | ||
|
||
[[deps.Base64]] | ||
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" | ||
version = "1.11.0" | ||
|
||
[[deps.CompilerSupportLibraries_jll]] | ||
deps = ["Artifacts", "Libdl"] | ||
uuid = "e66e0078-7015-5450-92f7-15fbd957f2ae" | ||
version = "1.2.0+0" | ||
|
||
[[deps.Dates]] | ||
deps = ["Printf"] | ||
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a" | ||
version = "1.11.0" | ||
|
||
[[deps.Distributed]] | ||
deps = ["Random", "Serialization", "Sockets"] | ||
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b" | ||
version = "1.11.0" | ||
|
||
[[deps.Downloads]] | ||
deps = ["ArgTools", "FileWatching", "LibCURL", "NetworkOptions"] | ||
uuid = "f43a241f-c20a-4ad4-852c-f6b1247861c6" | ||
version = "1.6.0" | ||
|
||
[[deps.FileWatching]] | ||
uuid = "7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee" | ||
version = "1.11.0" | ||
|
||
[[deps.Glob]] | ||
git-tree-sha1 = "97285bbd5230dd766e9ef6749b80fc617126d496" | ||
uuid = "c27321d9-0574-5035-807b-f59d2c89b15c" | ||
version = "1.3.1" | ||
|
||
[[deps.InteractiveUtils]] | ||
deps = ["Markdown"] | ||
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240" | ||
version = "1.11.0" | ||
|
||
[[deps.JuliaSyntaxHighlighting]] | ||
deps = ["StyledStrings"] | ||
uuid = "dc6e5ff7-fb65-4e79-a425-ec3bc9c03011" | ||
version = "1.12.0" | ||
|
||
[[deps.LazyArtifacts]] | ||
deps = ["Artifacts", "Pkg"] | ||
uuid = "4af54fe1-eca0-43a8-85a7-787d91b784e3" | ||
version = "1.11.0" | ||
|
||
[[deps.LibCURL]] | ||
deps = ["LibCURL_jll", "MozillaCACerts_jll"] | ||
uuid = "b27032c2-a3e7-50c8-80cd-2d36dbcbfd21" | ||
version = "0.6.4" | ||
|
||
[[deps.LibCURL_jll]] | ||
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll", "Zlib_jll", "nghttp2_jll"] | ||
uuid = "deac9b47-8bc7-5906-a0fe-35ac56dc84c0" | ||
version = "8.6.0+0" | ||
|
||
[[deps.LibGit2]] | ||
deps = ["LibGit2_jll", "NetworkOptions", "Printf", "SHA"] | ||
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433" | ||
version = "1.11.0" | ||
|
||
[[deps.LibGit2_jll]] | ||
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll"] | ||
uuid = "e37daf67-58a4-590a-8e99-b0245dd2ffc5" | ||
version = "1.8.0+0" | ||
|
||
[[deps.LibSSH2_jll]] | ||
deps = ["Artifacts", "Libdl", "MbedTLS_jll"] | ||
uuid = "29816b5a-b9ab-546f-933c-edad1886dfa8" | ||
version = "1.11.0+1" | ||
|
||
[[deps.Libdl]] | ||
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb" | ||
version = "1.11.0" | ||
|
||
[[deps.LinearAlgebra]] | ||
deps = ["Libdl", "OpenBLAS_jll", "libblastrampoline_jll"] | ||
path = ".." | ||
uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | ||
version = "1.11.0" | ||
|
||
[[deps.Logging]] | ||
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568" | ||
version = "1.11.0" | ||
|
||
[[deps.Markdown]] | ||
deps = ["Base64", "JuliaSyntaxHighlighting", "StyledStrings"] | ||
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a" | ||
version = "1.11.0" | ||
|
||
[[deps.MbedTLS_jll]] | ||
deps = ["Artifacts", "Libdl"] | ||
uuid = "c8ffd9c3-330d-5841-b78e-0817d7145fa1" | ||
version = "2.28.6+1" | ||
|
||
[[deps.MozillaCACerts_jll]] | ||
uuid = "14a3606d-f60d-562e-9121-12d972cd8159" | ||
version = "2024.3.11" | ||
|
||
[[deps.NetworkOptions]] | ||
uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908" | ||
version = "1.2.0" | ||
|
||
[[deps.OpenBLAS_jll]] | ||
deps = ["Artifacts", "CompilerSupportLibraries_jll", "Libdl"] | ||
uuid = "4536629a-c528-5b80-bd46-f80d51c5b363" | ||
version = "0.3.28+3" | ||
|
||
[[deps.PackageCompiler]] | ||
deps = ["Artifacts", "Glob", "LazyArtifacts", "Libdl", "Pkg", "Printf", "RelocatableFolders", "TOML", "UUIDs", "p7zip_jll"] | ||
git-tree-sha1 = "02aabd917887f198fd0a01b1d935774c5c459f8c" | ||
repo-rev = "master" | ||
repo-url = "https://github.com/JuliaLang/PackageCompiler.jl.git" | ||
uuid = "9b87118b-4619-50d2-8e1e-99f35a4d4d9d" | ||
version = "2.1.22" | ||
|
||
[[deps.Pkg]] | ||
deps = ["Artifacts", "Dates", "Downloads", "FileWatching", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "Random", "SHA", "TOML", "Tar", "UUIDs", "p7zip_jll"] | ||
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
version = "1.12.0" | ||
weakdeps = ["REPL"] | ||
|
||
[deps.Pkg.extensions] | ||
REPLExt = "REPL" | ||
|
||
[[deps.Printf]] | ||
deps = ["Unicode"] | ||
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7" | ||
version = "1.11.0" | ||
|
||
[[deps.REPL]] | ||
deps = ["InteractiveUtils", "JuliaSyntaxHighlighting", "Markdown", "Sockets", "StyledStrings", "Unicode"] | ||
uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb" | ||
version = "1.11.0" | ||
|
||
[[deps.Random]] | ||
deps = ["SHA"] | ||
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | ||
version = "1.11.0" | ||
|
||
[[deps.RelocatableFolders]] | ||
deps = ["SHA", "Scratch"] | ||
git-tree-sha1 = "ffdaf70d81cf6ff22c2b6e733c900c3321cab864" | ||
uuid = "05181044-ff0b-4ac5-8273-598c1e38db00" | ||
version = "1.0.1" | ||
|
||
[[deps.SHA]] | ||
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce" | ||
version = "0.7.0" | ||
|
||
[[deps.Scratch]] | ||
deps = ["Dates"] | ||
git-tree-sha1 = "3bac05bc7e74a75fd9cba4295cde4045d9fe2386" | ||
uuid = "6c6a2e73-6563-6170-7368-637461726353" | ||
version = "1.2.1" | ||
|
||
[[deps.Serialization]] | ||
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b" | ||
version = "1.11.0" | ||
|
||
[[deps.Sockets]] | ||
uuid = "6462fe0b-24de-5631-8697-dd941f90decc" | ||
version = "1.11.0" | ||
|
||
[[deps.StyledStrings]] | ||
uuid = "f489334b-da3d-4c2e-b8f0-e476e12c162b" | ||
version = "1.11.0" | ||
|
||
[[deps.TOML]] | ||
deps = ["Dates"] | ||
uuid = "fa267f1f-6049-4f14-aa54-33bafae1ed76" | ||
version = "1.0.3" | ||
|
||
[[deps.Tar]] | ||
deps = ["ArgTools", "SHA"] | ||
uuid = "a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e" | ||
version = "1.10.0" | ||
|
||
[[deps.Test]] | ||
deps = ["InteractiveUtils", "Logging", "Random", "Serialization"] | ||
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
version = "1.11.0" | ||
|
||
[[deps.UUIDs]] | ||
deps = ["Random", "SHA"] | ||
uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4" | ||
version = "1.11.0" | ||
|
||
[[deps.Unicode]] | ||
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5" | ||
version = "1.11.0" | ||
|
||
[[deps.Zlib_jll]] | ||
deps = ["Libdl"] | ||
uuid = "83775a58-1f1d-513f-b197-d71354ab007a" | ||
version = "1.3.1+1" | ||
|
||
[[deps.libblastrampoline_jll]] | ||
deps = ["Artifacts", "Libdl"] | ||
uuid = "8e850b90-86db-534c-a0d3-1478176c7d93" | ||
version = "5.11.1+0" | ||
|
||
[[deps.nghttp2_jll]] | ||
deps = ["Artifacts", "Libdl"] | ||
uuid = "8e850ede-7688-5339-a07c-302acd2aaf8d" | ||
version = "1.63.0+1" | ||
|
||
[[deps.p7zip_jll]] | ||
deps = ["Artifacts", "Libdl"] | ||
uuid = "3f19e933-33d8-53b3-aaab-bd5110c3b7a0" | ||
version = "17.5.0+1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[deps] | ||
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" | ||
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b" | ||
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | ||
PackageCompiler = "9b87118b-4619-50d2-8e1e-99f35a4d4d9d" | ||
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" | ||
REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb" | ||
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using PackageCompiler | ||
|
||
sysimage = tempname() | ||
|
||
if haskey(ENV, "BUILDKITE") | ||
ncores = Sys.CPU_THREADS | ||
else | ||
ncores = ceil(Int, Sys.CPU_THREADS / 2) | ||
end | ||
|
||
withenv("JULIA_IMAGE_THREADS" => ncores) do | ||
create_sysimage(["LinearAlgebra", "Test", "Distributed", "Dates", "REPL", "Printf", "Random"]; sysimage_path=sysimage, incremental=false, filter_stdlibs=true) | ||
end | ||
|
||
current_dir = @__DIR__ | ||
cmd = """Base.runtests(["LinearAlgebra"]; propagate_project=true, ncores=$ncores)""" | ||
withenv("JULIA_NUM_THREADS" => 1) do | ||
run(`$(Base.julia_cmd()) --sysimage=$sysimage --project=$current_dir -e $cmd`) | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: CI | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- 'master' | ||
- 'release-*' | ||
tags: '*' | ||
concurrency: | ||
# Skip intermediate builds: all builds except for builds on the `main` or `release-*` branches | ||
# Cancel intermediate builds: only pull request builds | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-') || github.run_number }} | ||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | ||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: julia-actions/setup-julia@v2 | ||
with: | ||
version: 'nightly' | ||
- name: Generate docs | ||
run: | | ||
julia --project --color=yes -e '' | ||
julia --project --color=yes -e 'using Pkg; Pkg.respect_sysimage_versions(false); Pkg.activate("docs"); Pkg.develop(PackageSpec(path = pwd()))' | ||
julia --project=docs --color=yes docs/make.jl | ||
env: | ||
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: TagBot | ||
on: | ||
issue_comment: | ||
types: | ||
- created | ||
workflow_dispatch: | ||
jobs: | ||
TagBot: | ||
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: JuliaRegistries/TagBot@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
ssh: ${{ secrets.DOCUMENTER_KEY }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Manifest.toml | ||
Manifest-v*.*.toml | ||
docs/build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
The code in this repository is part of the Julia project. See the LICENSE file in the Julia project: | ||
|
||
https://github.com/JuliaLang/julia/blob/master/LICENSE.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[deps] | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.