Skip to content

build(deps): bump clap from 4.5.23 to 4.5.26 #22

build(deps): bump clap from 4.5.23 to 4.5.26

build(deps): bump clap from 4.5.23 to 4.5.26 #22

Workflow file for this run

name: Release
on:
push:
tags:
- "*"
pull_request:
workflow_dispatch:
jobs:
release:
name: Release
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
- os: ubuntu-latest
target: aarch64-unknown-linux-musl
container: ghcr.io/cross-rs/aarch64-unknown-linux-musl:edge
- os: macOS-latest
target: x86_64-apple-darwin
- os: macOS-latest
target: aarch64-apple-darwin
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
steps:
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: ${{ matrix.target }}
- name: Install musl tools
if: matrix.target == 'x86_64-unknown-linux-musl'
run: |
sudo apt install -y musl-tools
- name: Checkout
uses: actions/checkout@v4
- name: cargo fetch
run: cargo fetch --target ${{ matrix.target }}
- name: Release build
run: cargo build --release --target ${{ matrix.target }}
- name: Package
shell: bash
env:
NAME: kdbx
TARGET: ${{ matrix.target }}
run: .github/scripts/package.sh
- name: Publish
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: "kdbx*"
body_path: ./release.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}