From 8306076d6403cd497d302d3ef4c8ae44c702063f Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Wed, 8 Oct 2025 20:42:47 -0700 Subject: [PATCH] WIP: Start on CI configuration --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d2500e2f794ca06bdbc6c06b21ce39001b57973..41825dd23aa594f2f040eee88af130ff7b6f81a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -413,6 +413,43 @@ jobs: if: always() run: rm -rf ./../.cargo + publish_gpui: + # Nextest currently doesn't support doctests, so run them separately and in parallel. + timeout-minutes: 60 + name: (Linux) Run doctests + needs: [macos_tests, windows_tests, linux_tests] + if: | # TODO! Change this tag check somehow + github.repository_owner == 'zed-industries' && + startsWith(github.ref, 'refs/tags/v') + runs-on: + - namespace-profile-16x32-ubuntu-2204 + steps: # TODO! Actually run the action here TODO! get a secret into CI??? + - name: Add Rust to the PATH + run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + + - name: Checkout repo + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + with: + clean: false + + - name: Cache dependencies + uses: swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2 + with: + save-if: ${{ github.ref == 'refs/heads/main' }} + # cache-provider: "buildjet" + + - name: Configure CI + run: | + mkdir -p ./../.cargo + cp ./.cargo/ci-config.toml ./../.cargo/config.toml + + - name: Publish GPUI + run: cargo xtask publish_gpui + + - name: Clean CI config file + if: always() + run: rm -rf ./../.cargo + build_remote_server: timeout-minutes: 60 name: (Linux) Build Remote Server