From 83bc71acf0577f450c9467312d1a2cf7c135d6ac Mon Sep 17 00:00:00 2001 From: Stefan Krastanov Date: Fri, 26 Jan 2024 21:15:58 -0500 Subject: [PATCH] start using julia-actions/cache and clean up buildkite (#230) --- .buildkite/pipeline.yml | 20 ++++++++++++++++++-- .github/workflows/ci-julia-nightly.yml | 11 +---------- .github/workflows/ci.yml | 12 ++---------- .github/workflows/downgrade.yml | 1 + .github/workflows/invalidations.yml | 1 + 5 files changed, 23 insertions(+), 22 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 0fd0fc630..93758d30b 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -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" @@ -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"] = ""; @@ -32,4 +48,4 @@ steps: Pkg.test("QuantumSavory"); Pkg.add("BPGates"); Pkg.build("BPGates"); - Pkg.test("BPGates");' \ No newline at end of file + Pkg.test("BPGates");' diff --git a/.github/workflows/ci-julia-nightly.yml b/.github/workflows/ci-julia-nightly.yml index 999662b4c..1203529a1 100644 --- a/.github/workflows/ci-julia-nightly.yml +++ b/.github/workflows/ci-julia-nightly.yml @@ -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: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e45f8971a..6ada5649f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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: diff --git a/.github/workflows/downgrade.yml b/.github/workflows/downgrade.yml index 761a4961a..b12c8448c 100644 --- a/.github/workflows/downgrade.yml +++ b/.github/workflows/downgrade.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/invalidations.yml b/.github/workflows/invalidations.yml index 7e0aefe01..e6aade0e6 100644 --- a/.github/workflows/invalidations.yml +++ b/.github/workflows/invalidations.yml @@ -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