Skip to content

Fork extension/pascal due to maintainer unresponsiveness #24645

Fork extension/pascal due to maintainer unresponsiveness

Fork extension/pascal due to maintainer unresponsiveness #24645

Workflow file for this run

name: CI
on:
pull_request:
merge_group:
push:
branches:
- "main"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
env:
ZED_EXTENSION_CLI_SHA: 9ee3c503a4bbbc6b4a0f8a789acca4871d773223
jobs:
package:
runs-on: >-
${{ (github.ref == 'refs/heads/main'
|| github.event_name == 'merge_group'
|| contains(github.event.pull_request.labels.*.name, 'large-runner'))
&& 'namespace-profile-8x32-ubuntu-2404'
|| 'namespace-profile-4x8-ubuntu-2404' }}
if: github.repository_owner == 'zed-industries'
timeout-minutes: 10
steps:
- name: Checkout repo
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with:
clean: false
fetch-depth: 0
- uses: pnpm/setup@5d160c5bc68a09337ad0d5654e237e03253b5879 # v1
with:
version: 11
runtime: node@24.22.2
cache: true
- uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1
with:
toolchain: "1.90"
target: "wasm32-wasip2"
- name: Cache zed-extension CLI
id: cache-zed-extension
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: |
zed-extension
key: zed-extension-${{ env.ZED_EXTENSION_CLI_SHA }}
- name: Download zed-extension CLI if not cached
if: steps.cache-zed-extension.outputs.cache-hit != 'true'
run: |
wget --quiet "https://zed-extension-cli.nyc3.digitaloceanspaces.com/$ZED_EXTENSION_CLI_SHA/x86_64-unknown-linux-gnu/zed-extension"
chmod +x zed-extension
- name: Build
run: pnpm build
- name: Run tests
run: pnpm test
- name: Cache extension build dependencies
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
key: cache-build-dependencies
path: |
./scratch
- name: Package extensions
run: pnpm package-extensions
env:
REF_NAME: ${{ github.ref_name }}
RUSTUP_TOOLCHAIN: "1.90"
SHOULD_PUBLISH: ${{ github.ref_name == 'main' }}
S3_BUCKET: ${{ secrets.S3_BUCKET }}
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
- name: Enforce sorted `extensions.toml` and `.gitmodules`
run: |
if ! git diff --exit-code -- extensions.toml .gitmodules; then
echo -e "\nERROR: extensions.toml and .gitmodules are not sorted."
echo -e "Fix by running:\n pnpm sort-extensions\n"
exit 1
fi
- name: Enforce no Git LFS
run: |
# shellcheck disable=SC2016
git submodule foreach --quiet \
'[ ! -f .gitattributes ] || ! grep -q "filter=lfs" .gitattributes && [ ! -d .git/lfs ] || {
echo "LFS detected in $path" >&2 && exit 1
}'