Skip to content

Commit

Permalink
start using julia-actions/cache and clean up buildkite (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krastanov authored Jan 27, 2024
1 parent 1b9db49 commit 83bc71a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 22 deletions.
20 changes: 18 additions & 2 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ env:
PYCALL_DEBUG_BUILD: yes

steps:
- label: "CI Buildkite"
- label: "Package Tests CI on Buildkite"
plugins:
- JuliaCI/julia#v1:
version: "1"
Expand All @@ -24,6 +24,22 @@ steps:
Pkg.build("PyCall");
println("and now we dev the current package");
pkg"dev .";'
- label: "Downstream Breakage CI on Buildkite"
plugins:
- JuliaCI/julia#v1:
version: "1"
- QuantumSavory/julia-xvfb#v1:
command:
- echo "Julia depot path $${JULIA_DEPOT_PATH}"
- mkdir -p "$${JULIA_DEPOT_PATH}/conda/3/x86_64"
- julia --project='~' -e '
using Pkg;
ENV["PYTHON"] = "";
Pkg.add("Conda");
Pkg.add("PyCall");
Pkg.build("PyCall");
println("and now we dev the current package");
pkg"dev .";'
- julia --project='~' -e '
using Pkg;
ENV["PYTHON"] = "";
Expand All @@ -32,4 +48,4 @@ steps:
Pkg.test("QuantumSavory");
Pkg.add("BPGates");
Pkg.build("BPGates");
Pkg.test("BPGates");'
Pkg.test("BPGates");'
11 changes: 1 addition & 10 deletions .github/workflows/ci-julia-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,7 @@ jobs:
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v4
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,7 @@ jobs:
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v4
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
Expand All @@ -55,6 +46,7 @@ jobs:
- uses: julia-actions/setup-julia@v1
with:
version: '1'
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-docdeploy@v1
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/downgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ jobs:
- uses: cjdoris/julia-downgrade-compat-action@v1
with:
skip: Pkg,TOML,InteractiveUtils,Random,LinearAlgebra
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
1 change: 1 addition & 0 deletions .github/workflows/invalidations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
with:
version: '1'
- uses: actions/checkout@v4
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-invalidations@v1
id: invs_pr
Expand Down

0 comments on commit 83bc71a

Please sign in to comment.