mirror of
https://github.com/FliegendeWurst/tmux-thumbs.git
synced 2024-11-24 13:54:57 +00:00
Improve the matrix of releases
This commit is contained in:
parent
db2663d547
commit
bbf677fda3
53
.github/workflows/release.yml
vendored
53
.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
|
||||||
steps:
|
strategy:
|
||||||
- name: checkout
|
fail-fast: false
|
||||||
uses: actions/checkout@v2
|
matrix:
|
||||||
with:
|
include:
|
||||||
fetch-depth: 0
|
- target: x86_64-unknown-linux-musl
|
||||||
- name: build
|
archive: tar.gz tar.xz
|
||||||
uses: sassman/rust-deb-builder@v1.57.0
|
- target: x86_64-apple-darwin
|
||||||
with:
|
archive: zip
|
||||||
target: x86_64-unknown-linux-musl
|
steps:
|
||||||
- name: package
|
- uses: actions/checkout@master
|
||||||
run: |
|
- name: Compile and release
|
||||||
cd "$GITHUB_WORKSPACE"
|
uses: rust-build/rust-build.action@latest
|
||||||
mkdir -p package
|
env:
|
||||||
mkdir -p package/target/release
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
cp -v tmux-thumbs.sh tmux-thumbs.tmux package/
|
RUSTTARGET: ${{ matrix.target }}
|
||||||
cp -v target/x86_64-unknown-linux-musl/release/thumbs package/target/release
|
EXTRA_FILES: "tmux-thumbs.sh tmux-thumbs.tmux tmux-thumbs-install.sh"
|
||||||
cp -v target/x86_64-unknown-linux-musl/release/tmux-thumbs package/target/release
|
ARCHIVE_TYPES: ${{ matrix.archive }}
|
||||||
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