Skip to content

Commit 4e41d51

Browse files
committed
build(release): tmux-backup v0.5.8
1 parent a2991d4 commit 4e41d51

File tree

3 files changed

+20
-24
lines changed

3 files changed

+20
-24
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,73 @@
11
name: Release
22
on:
33
push:
4-
tags:
5-
- 'v*'
4+
tags:
5+
- "v*"
66

77
jobs:
88
prepare-artifacts:
99
name: Prepare release artifacts
1010
# if: github.ref == 'refs/heads/main'
11-
runs-on: '${{ matrix.os }}'
11+
runs-on: "${{ matrix.os }}"
1212
strategy:
1313
matrix:
1414
include:
1515
- os: macos-latest
1616
target: aarch64-apple-darwin
1717
rust: stable
18-
suffix: ''
18+
suffix: ""
1919
archive_ext: zip
2020
- os: macos-13
2121
target: x86_64-apple-darwin
2222
rust: stable
23-
suffix: ''
23+
suffix: ""
2424
archive_ext: zip
2525
- os: ubuntu-latest
2626
target: x86_64-unknown-linux-gnu
2727
rust: stable
28-
suffix: ''
28+
suffix: ""
2929
archive_ext: tar.xz
3030
- os: windows-latest
3131
target: x86_64-pc-windows-msvc
3232
rust: stable
3333
suffix: .exe
3434
archive_ext: zip
3535
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v4
38+
3639
- name: Rust install
3740
uses: dtolnay/rust-toolchain@master
3841
with:
3942
toolchain: stable
4043
components: rustfmt, clippy
4144

42-
- name: checkout
43-
uses: actions/checkout@v4
44-
4545
- name: Cache crates from crates.io
4646
uses: actions/cache@v4
4747
continue-on-error: false
4848
with:
4949
path: |
50-
~/.cargo/bin/
51-
~/.cargo/registry/index/
52-
~/.cargo/registry/cache/
53-
~/.cargo/git/db/
54-
target/
55-
key: '${{ runner.os }}-${{ matrix.target }}-cargo-${{ matrix.rust }}-hash-${{ hashFiles(''**/Cargo.lock'') }}'
50+
~/.cargo/bin/
51+
~/.cargo/registry/index/
52+
~/.cargo/registry/cache/
53+
~/.cargo/git/db/
54+
target/
55+
key: "${{ runner.os }}-${{ matrix.target }}-cargo-${{ matrix.rust }}-hash-${{ hashFiles('**/Cargo.lock') }}"
5656

5757
- name: Build Release
5858
run: cargo build --release
5959

6060
- name: Compress to zip (macOS)
6161
if: ${{ matrix.os == 'macos-latest' || matrix.os == 'macos-13' }}
62-
run:
63-
zip -A ${{ github.event.repository.name }}-${{ matrix.target }}.${{ matrix.archive_ext }} target/release/${{ github.event.repository.name }}
62+
run: zip -A ${{ github.event.repository.name }}-${{ matrix.target }}.${{ matrix.archive_ext }} target/release/${{ github.event.repository.name }}
6463

6564
- name: Compress to zip (Windows)
6665
if: ${{ matrix.os == 'windows-latest' }}
67-
run:
68-
Compress-Archive target/release/${{ github.event.repository.name }}${{ matrix.suffix }} ${{ github.event.repository.name }}-${{ matrix.target }}.${{ matrix.archive_ext }}
66+
run: Compress-Archive target/release/${{ github.event.repository.name }}${{ matrix.suffix }} ${{ github.event.repository.name }}-${{ matrix.target }}.${{ matrix.archive_ext }}
6967

7068
- name: Compress to tar.xz (Linux)
7169
if: ${{ matrix.os == 'ubuntu-latest' }}
72-
run:
73-
tar Jcf ${{ github.event.repository.name }}-${{ matrix.target }}.${{ matrix.archive_ext }} target/release/${{ github.event.repository.name }}
70+
run: tar Jcf ${{ github.event.repository.name }}-${{ matrix.target }}.${{ matrix.archive_ext }} target/release/${{ github.event.repository.name }}
7471

7572
- name: List files
7673
run: |
@@ -104,7 +101,6 @@ jobs:
104101
run: |
105102
echo "tag-name=${GITHUB_REF#refs/tags/}" >> ${GITHUB_OUTPUT}
106103
107-
108104
- name: Download convco
109105
run: |
110106
git show-ref

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tmux-backup"
3-
version = "0.5.7"
3+
version = "0.5.8"
44
edition = "2021"
55
rust-version = "1.74.0"
66
description = "A backup & restore solution for Tmux sessions."

0 commit comments

Comments
 (0)