Skip to content

Commit

Permalink
amending buildkite functionality where agents use their own depot (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
quffaro authored Jul 9, 2024
1 parent 70a4e8e commit 1ff1c31
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .buildkite/jobscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pwd; hostname; date
module load julia

echo "Running Tests..."
julia --project -e 'using Pkg; Pkg.status(); Pkg.test()'
julia --project -t 16 -e 'using Pkg; Pkg.status(); Pkg.test()'

echo "Building Documentation..."
julia -t 16 --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.status(); Pkg.instantiate(); include("docs/make.jl")'
julia --project=docs -t 16 -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.status(); Pkg.instantiate(); include("docs/make.jl")'
12 changes: 8 additions & 4 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
env:
JULIA_VERSION: "1.9.3"
JULIA_VERSION: "1.10.2"
GATAS_HOME: "~/.gatas/buildkite/agents/$BUILDKITE_AGENT_NAME"

steps:

- label: ":hammer: Build Project"
env:
JULIA_DEPOT_PATH: "$GATAS_HOME"
command:
- "module load julia"
- "julia --project=docs --color=yes -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate(); Pkg.precompile()'"
- "julia --project=docs --color=yes -e 'using Pkg; Pkg.update(); Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate(); Pkg.precompile()'"

- wait

- label: ":scroll: Build docs and run tests"
command:
- "srun --cpus-per-task=16 --mem=8G --time=1:00:00 --output=.buildkite/build_%j.log --unbuffered .buildkite/jobscript.sh"
env:
JULIA_DEPOT_PATH: "$GATAS_HOME"
JULIA_PROJECT: "docs/"
command:
- "srun --cpus-per-task=16 --mem=64G --time=1:00:00 --output=.buildkite/log_%j.log --unbuffered .buildkite/jobscript.sh"

- wait

0 comments on commit 1ff1c31

Please sign in to comment.