Skip to content

feat: log token source on startup; document config in README #5

feat: log token source on startup; document config in README

feat: log token source on startup; document config in README #5

Workflow file for this run

name: Release codetime-ls
# Tag a release (e.g. `git tag v0.1.0 && git push --tags`) to build the language
# server for every platform the Zed extension downloads, and attach the
# `codetime-ls-<target-triple>.zip` assets the extension looks for.
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build:
name: ${{ matrix.target }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
cross: false
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
cross: true
- os: macos-latest
target: x86_64-apple-darwin
cross: false
- os: macos-latest
target: aarch64-apple-darwin
cross: false
- os: windows-latest
target: x86_64-pc-windows-msvc
cross: false
# Native ARM64 runner: cross-compiling the TLS backend from x64
# Windows is brittle, so build aarch64-windows on real hardware.
- os: windows-11-arm
target: aarch64-pc-windows-msvc
cross: false
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Install cross
if: matrix.cross
run: cargo install cross --locked
- name: Build
shell: bash
run: |
if [ "${{ matrix.cross }}" = "true" ]; then
cross build --manifest-path codetime-ls/Cargo.toml --release --target ${{ matrix.target }}
else
cargo build --manifest-path codetime-ls/Cargo.toml --release --target ${{ matrix.target }}
fi
- name: Package
shell: bash
run: |
bin=codetime-ls
ext=""
if [[ "${{ matrix.target }}" == *windows* ]]; then ext=".exe"; fi
src="codetime-ls/target/${{ matrix.target }}/release/${bin}${ext}"
out="codetime-ls-${{ matrix.target }}.zip"
# Zip must contain the binary at its root, named codetime-ls(.exe).
if command -v 7z >/dev/null 2>&1; then
cp "$src" "${bin}${ext}"
7z a "$out" "${bin}${ext}"
else
(cd "target/${{ matrix.target }}/release" && zip -j "$OLDPWD/$out" "${bin}${ext}")
fi
- name: Upload to release
uses: softprops/action-gh-release@v2
with:
files: codetime-ls-${{ matrix.target }}.zip