mirror of
https://github.com/FliegendeWurst/tmux-thumbs.git
synced 2024-11-10 00:00:36 +00:00
Improve the matrix of releases
This commit is contained in:
parent
db2663d547
commit
bbf677fda3
47
.github/workflows/release.yml
vendored
47
.github/workflows/release.yml
vendored
@ -1,36 +1,27 @@
|
|||||||
name: release
|
name: release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
release:
|
||||||
tags:
|
types: [published]
|
||||||
- '*'
|
|
||||||
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
name: release
|
name: release ${{ matrix.target }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- target: x86_64-unknown-linux-musl
|
||||||
|
archive: tar.gz tar.xz
|
||||||
|
- target: x86_64-apple-darwin
|
||||||
|
archive: zip
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- uses: actions/checkout@master
|
||||||
uses: actions/checkout@v2
|
- name: Compile and release
|
||||||
with:
|
uses: rust-build/rust-build.action@latest
|
||||||
fetch-depth: 0
|
env:
|
||||||
- name: build
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
uses: sassman/rust-deb-builder@v1.57.0
|
RUSTTARGET: ${{ matrix.target }}
|
||||||
with:
|
EXTRA_FILES: "tmux-thumbs.sh tmux-thumbs.tmux tmux-thumbs-install.sh"
|
||||||
target: x86_64-unknown-linux-musl
|
ARCHIVE_TYPES: ${{ matrix.archive }}
|
||||||
- name: package
|
|
||||||
run: |
|
|
||||||
cd "$GITHUB_WORKSPACE"
|
|
||||||
mkdir -p package
|
|
||||||
mkdir -p package/target/release
|
|
||||||
cp -v tmux-thumbs.sh tmux-thumbs.tmux package/
|
|
||||||
cp -v target/x86_64-unknown-linux-musl/release/thumbs package/target/release
|
|
||||||
cp -v target/x86_64-unknown-linux-musl/release/tmux-thumbs package/target/release
|
|
||||||
tar czvf tmux-thumbs.x86_64-musl.tar.gz package/*
|
|
||||||
- name: create_release
|
|
||||||
uses: ncipollo/release-action@v1.9.0
|
|
||||||
with:
|
|
||||||
artifactErrorsFailBuild: true
|
|
||||||
artifacts: "tmux-thumbs.x86_64-musl.tar.gz"
|
|
||||||
|
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -155,7 +155,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "thumbs"
|
name = "thumbs"
|
||||||
version = "0.6.1"
|
version = "0.7.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64",
|
"base64",
|
||||||
"clap",
|
"clap",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "thumbs"
|
name = "thumbs"
|
||||||
version = "0.6.1"
|
version = "0.7.0"
|
||||||
authors = ["Ferran Basora <fcsonline@gmail.com>"]
|
authors = ["Ferran Basora <fcsonline@gmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
description = "A lightning fast version copy/pasting like vimium/vimperator"
|
description = "A lightning fast version copy/pasting like vimium/vimperator"
|
||||||
|
@ -433,7 +433,7 @@ cargo install thumbs
|
|||||||
And those are all available options:
|
And those are all available options:
|
||||||
|
|
||||||
```
|
```
|
||||||
thumbs 0.6.0
|
thumbs 0.7.0
|
||||||
A lightning fast version copy/pasting like vimium/vimperator
|
A lightning fast version copy/pasting like vimium/vimperator
|
||||||
|
|
||||||
USAGE:
|
USAGE:
|
||||||
|
@ -1,9 +1,16 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -Eeu -o pipefail
|
set -Eeu -o pipefail
|
||||||
|
|
||||||
|
# Setup env variables to be compatible with compiled and bundled installations
|
||||||
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
BINARY="${CURRENT_DIR}/target/release/thumbs"
|
if [ -d .git ]; then
|
||||||
|
RELEASE_DIR="${CURRENT_DIR}/target/release"
|
||||||
|
else
|
||||||
|
RELEASE_DIR=${CURRENT_DIR}
|
||||||
|
fi
|
||||||
|
|
||||||
|
BINARY="${RELEASE_DIR}/thumbs"
|
||||||
|
|
||||||
if [ ! -f "$BINARY" ]; then
|
if [ ! -f "$BINARY" ]; then
|
||||||
tmux split-window "cd ${CURRENT_DIR} && bash ./tmux-thumbs-install.sh"
|
tmux split-window "cd ${CURRENT_DIR} && bash ./tmux-thumbs-install.sh"
|
||||||
@ -43,4 +50,4 @@ add-param upcase-command string
|
|||||||
add-param multi-command string
|
add-param multi-command string
|
||||||
add-param osc52 boolean
|
add-param osc52 boolean
|
||||||
|
|
||||||
"${CURRENT_DIR}/target/release/tmux-thumbs" "${PARAMS[@]}" || true
|
"${RELEASE_DIR}/tmux-thumbs" "${PARAMS[@]}" || true
|
||||||
|
Loading…
Reference in New Issue
Block a user