diff --git a/.github/workflows/release-rust-duper-lsp.yaml b/.github/workflows/release-rust-duper-lsp.yaml new file mode 100644 index 0000000..e6aecc6 --- /dev/null +++ b/.github/workflows/release-rust-duper-lsp.yaml @@ -0,0 +1,124 @@ +on: + push: + tags: + - "duper_lsp@*.*.*" + +permissions: {} + +env: + RUST_VERSION: "1.92.0" + CARGO_INCREMENTAL: "0" + CARGO_PROFILE_TEST_DEBUG: "0" + +jobs: + prepare_duper_lsp: + runs-on: ubuntu-24.04 + outputs: + version: ${{ steps.duper_lsp_version.outputs.version }} + steps: + - name: Checkout repository + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: false + - name: Get duper_lsp version + id: duper_lsp_version + run: | + echo "version=$(cargo metadata | jq -r '.packages[] | select(.name == "duper_lsp") | .version')" >> "$GITHUB_OUTPUT" + + build_duper_lsp: + strategy: + fail-fast: false + matrix: + include: + - runner: ubuntu-24.04 + target: x86_64-unknown-linux-gnu + suffix: linux-x64 + os: linux + - runner: ubuntu-24.04 + target: aarch64-unknown-linux-gnu + suffix: linux-arm64 + os: linux + - runner: windows-latest + target: x86_64-pc-windows-msvc + suffix: win32-x64.exe + os: windows + - runner: windows-latest + target: aarch64-pc-windows-msvc + suffix: win32-arm64.exe + os: windows + - runner: macos-15 + target: x86_64-apple-darwin + suffix: darwin-x64 + os: macos + - runner: macos-15 + target: aarch64-apple-darwin + suffix: darwin-arm64 + os: macos + name: Build and distribute duper_lsp_${{ matrix.suffix }} + runs-on: ${{ matrix.runner }} + needs: + - prepare_duper_lsp + environment: codeberg + steps: + - name: Checkout repository + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: true + - name: Fetch MSRV and add target + run: | + rustup toolchain install ${RUST_VERSION} + rustup override set ${RUST_VERSION} + rustup target add ${{ matrix.target }} + - name: Install Zig + if: matrix.runner == 'ubuntu-24.04' + uses: mlugg/setup-zig@8d6198c65fb0feaa111df26e6b467fea8345e46f # v2.0.5 + with: + version: latest + - name: Install cargo-zigbuild (Linux) + if: matrix.runner == 'ubuntu-24.04' + uses: taiki-e/install-action@a24ba45235ed716ff76646268742990dc9458860 # v2.62.42 + with: + tool: cargo-zigbuild + - name: Install lld (macOS) + if: matrix.os == 'macos' + run: | + brew install lld + - name: Install lld (Windows) + if: matrix.os == 'windows' + run: | + choco install llvm + - name: Build with cargo-zigbuild (Linux) + if: matrix.runner == 'ubuntu-24.04' + run: | + cargo zigbuild --locked --all-features --release --target ${{ matrix.target }} --manifest-path duper_lsp/Cargo.toml + - name: Build with cargo (macOS / Windows) + if: matrix.runner != 'ubuntu-24.04' + run: | + cargo build --locked --all-features --release --target ${{ matrix.target }} --manifest-path duper_lsp/Cargo.toml + - name: Push binary to Codeberg + shell: bash + run: | + curl --fail \ + --header "Authorization: token ${{ secrets.CODEBERG_PACKAGE_WRITE_TOKEN }}" \ + --upload-file target/${{ matrix.target }}/release/duper_lsp${{ matrix.os == 'windows' && '.exe' || '' }} \ + "https://codeberg.org/api/packages/EpicEric9/generic/duper_lsp/${{ needs.prepare_duper_lsp.outputs.version }}/duper_lsp_${{ matrix.suffix }}" + + publish-to-crates-io: + name: Publish to crates.io + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + needs: + - build_duper_lsp + steps: + - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + with: + persist-credentials: true + - name: Authenticate + uses: rust-lang/crates-io-auth-action@b7e9a28eded4986ec6b1fa40eeee8f8f165559ec # v1.0.3 + id: auth + - name: Publish duper_lsp + run: cargo publish -p duper_lsp + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} diff --git a/.github/workflows/release-rust.yaml b/.github/workflows/release-rust.yaml index b58cc2b..1bd669c 100644 --- a/.github/workflows/release-rust.yaml +++ b/.github/workflows/release-rust.yaml @@ -3,7 +3,6 @@ on: tags: - "axum_duper@*.*.*" - "duper@*.*.*" - - "duper_lsp@*.*.*" - "duperfmt@*.*.*" - "duperq@*.*.*" - "serde_duper@*.*.*" @@ -19,109 +18,12 @@ env: CARGO_PROFILE_TEST_DEBUG: "0" jobs: - prepare_duper_lsp: - if: startsWith(github.ref_name, 'duper_lsp@') - runs-on: ubuntu-24.04 - outputs: - version: ${{ steps.duper_lsp_version.outputs.version }} - steps: - - name: Checkout repository - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - with: - persist-credentials: false - - name: Get duper_lsp version - id: duper_lsp_version - run: | - echo "version=$(cargo metadata | jq -r '.packages[] | select(.name == "duper_lsp") | .version')" >> "$GITHUB_OUTPUT" - - build_duper_lsp: - if: startsWith(github.ref_name, 'duper_lsp@') - strategy: - fail-fast: false - matrix: - include: - - runner: ubuntu-24.04 - target: x86_64-unknown-linux-gnu - suffix: linux-x64 - os: linux - - runner: ubuntu-24.04 - target: aarch64-unknown-linux-gnu - suffix: linux-arm64 - os: linux - - runner: windows-latest - target: x86_64-pc-windows-msvc - suffix: win32-x64.exe - os: windows - - runner: windows-latest - target: aarch64-pc-windows-msvc - suffix: win32-arm64.exe - os: windows - - runner: macos-15 - target: x86_64-apple-darwin - suffix: darwin-x64 - os: macos - - runner: macos-15 - target: aarch64-apple-darwin - suffix: darwin-arm64 - os: macos - name: Build and distribute duper_lsp_${{ matrix.suffix }} - runs-on: ${{ matrix.runner }} - needs: - - prepare_duper_lsp - environment: codeberg - steps: - - name: Checkout repository - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - with: - persist-credentials: true - - name: Fetch MSRV and add target - run: | - rustup toolchain install ${RUST_VERSION} - rustup override set ${RUST_VERSION} - rustup target add ${{ matrix.target }} - - name: Install Zig - if: matrix.runner == 'ubuntu-24.04' - uses: mlugg/setup-zig@8d6198c65fb0feaa111df26e6b467fea8345e46f # v2.0.5 - with: - version: latest - - name: Install cargo-zigbuild (Linux) - if: matrix.runner == 'ubuntu-24.04' - uses: taiki-e/install-action@a24ba45235ed716ff76646268742990dc9458860 # v2.62.42 - with: - tool: cargo-zigbuild - - name: Install lld (macOS) - if: matrix.os == 'macos' - run: | - brew install lld - - name: Install lld (Windows) - if: matrix.os == 'windows' - run: | - choco install llvm - - name: Build with cargo-zigbuild (Linux) - if: matrix.runner == 'ubuntu-24.04' - run: | - cargo zigbuild --locked --all-features --release --target ${{ matrix.target }} --manifest-path duper_lsp/Cargo.toml - - name: Build with cargo (macOS / Windows) - if: matrix.runner != 'ubuntu-24.04' - run: | - cargo build --locked --all-features --release --target ${{ matrix.target }} --manifest-path duper_lsp/Cargo.toml - - name: Push binary to Codeberg - shell: bash - run: | - curl --fail \ - --header "Authorization: token ${{ secrets.CODEBERG_PACKAGE_WRITE_TOKEN }}" \ - --upload-file target/${{ matrix.target }}/release/duper_lsp${{ matrix.os == 'windows' && '.exe' || '' }} \ - "https://codeberg.org/api/packages/EpicEric9/generic/duper_lsp/${{ needs.prepare_duper_lsp.outputs.version }}/duper_lsp_${{ matrix.suffix }}" - publish-to-crates-io: name: Publish to crates.io runs-on: ubuntu-latest permissions: contents: read id-token: write - if: ${{ needs.build_duper_lsp.result == 'success' || needs.build_duper_lsp.result == 'skipped' }} - needs: - - build_duper_lsp steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 with: @@ -139,11 +41,6 @@ jobs: run: cargo publish -p duper env: CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} - - name: Publish duper_lsp - if: startsWith(github.ref_name, 'duper_lsp@') - run: cargo publish -p duper_lsp - env: - CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} - name: Publish duperfmt if: startsWith(github.ref_name, 'duperfmt@') run: cargo publish -p duperfmt diff --git a/axum_duper/CHANGELOG.md b/axum_duper/CHANGELOG.md index 53c4845..0d5b4fa 100644 --- a/axum_duper/CHANGELOG.md +++ b/axum_duper/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## Unreleased +## 0.4.4 (2026-01-03) ### Changed diff --git a/duper/CHANGELOG.md b/duper/CHANGELOG.md index 37f07b8..7c10d01 100644 --- a/duper/CHANGELOG.md +++ b/duper/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## Unreleased +## 0.6.1 (2026-01-03) ### Added diff --git a/duper_rpc/CHANGELOG.md b/duper_rpc/CHANGELOG.md index 63bfc98..5f5a7ce 100644 --- a/duper_rpc/CHANGELOG.md +++ b/duper_rpc/CHANGELOG.md @@ -1,5 +1,5 @@ # Changelog -## Unreleased +## 0.1.0 (2026-01-03) Initial release. diff --git a/duperq/CHANGELOG.md b/duperq/CHANGELOG.md index 183feb1..bec2b48 100644 --- a/duperq/CHANGELOG.md +++ b/duperq/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## Unreleased +## 0.2.0 (2026-01-03) ### Changed diff --git a/tree-sitter-duper/CHANGELOG.md b/tree-sitter-duper/CHANGELOG.md index 8eb464c..7c20bc6 100644 --- a/tree-sitter-duper/CHANGELOG.md +++ b/tree-sitter-duper/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## Unreleased +## 0.1.3 (2026-01-03) ### Added