mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 19:02:07 +00:00
a62e8f6396
- Switches the Cache Dependencies step (`swatinem/rust-cache`) of Linux tests to use buildjet as `cache-provider`. Explicitly add 'github' (the default cache provider) to other uses of `swatinem/rust-cache` for consistency. Release Notes: - N/A
40 lines
1 KiB
YAML
40 lines
1 KiB
YAML
name: Publish zed-extension CLI
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- extension-cli
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
CARGO_INCREMENTAL: 0
|
|
|
|
jobs:
|
|
publish:
|
|
name: Publish zed-extension CLI
|
|
runs-on:
|
|
- ubuntu-latest
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
|
with:
|
|
clean: false
|
|
|
|
- name: Cache dependencies
|
|
uses: swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2
|
|
with:
|
|
save-if: ${{ github.ref == 'refs/heads/main' }}
|
|
cache-provider: "github"
|
|
|
|
- name: Configure linux
|
|
shell: bash -euxo pipefail {0}
|
|
run: script/linux
|
|
|
|
- name: Build extension CLI
|
|
run: cargo build --release --package extension_cli
|
|
|
|
- name: Upload binary
|
|
env:
|
|
DIGITALOCEAN_SPACES_ACCESS_KEY: ${{ secrets.DIGITALOCEAN_SPACES_ACCESS_KEY }}
|
|
DIGITALOCEAN_SPACES_SECRET_KEY: ${{ secrets.DIGITALOCEAN_SPACES_SECRET_KEY }}
|
|
run: script/upload-extension-cli ${{ github.sha }}
|