Skip to content

chore: bump version to 0.2.9 #17

chore: bump version to 0.2.9

chore: bump version to 0.2.9 #17

Workflow file for this run

name: Release
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
on:
push:
tags:
- 'v*'
jobs:
ci:
uses: ./.github/workflows/ci.yml
build:
needs: ci
name: ${{ matrix.target }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
use_cross: true
- target: aarch64-unknown-linux-musl
os: ubuntu-latest
use_cross: true
- target: x86_64-apple-darwin
os: macos-latest
use_cross: false
- target: aarch64-apple-darwin
os: macos-latest
use_cross: false
steps:
- uses: actions/checkout@v6
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: ${{ matrix.target }}
- name: Install cross
if: matrix.use_cross
run: cargo install cross --locked
- name: Build
run: |
if [ "${{ matrix.use_cross }}" = "true" ]; then
cross build --release --target ${{ matrix.target }}
else
cargo build --release --target ${{ matrix.target }}
fi
- name: Package
run: |
cd target/${{ matrix.target }}/release
tar czf bashls-${{ matrix.target }}.tar.gz bashls
mv bashls-${{ matrix.target }}.tar.gz $GITHUB_WORKSPACE/
- uses: actions/upload-artifact@v4
with:
name: bashls-${{ matrix.target }}
path: bashls-${{ matrix.target }}.tar.gz
release:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: Create checksums
run: sha256sum bashls-*.tar.gz > checksums.txt
- uses: softprops/action-gh-release@v2
with:
files: |
bashls-*.tar.gz
checksums.txt