Skip to content

Commit 283f937

Browse files
committed
chore: release
1 parent 3313f17 commit 283f937

File tree

4 files changed

+41
-29
lines changed

4 files changed

+41
-29
lines changed

.github/workflows/release.yml

+27-17
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ on:
66
- "v[0-9]+.[0-9]+.[0-9]+"
77

88
jobs:
9-
publish:
10-
runs-on: ${{ matrix.os }}
9+
release:
10+
permissions:
11+
contents: write
12+
1113
strategy:
1214
matrix:
1315
include:
@@ -20,39 +22,47 @@ jobs:
2022
- os: macos-latest
2123
target: aarch64-apple-darwin
2224

25+
runs-on: ${{ matrix.os }}
26+
2327
steps:
2428
- uses: actions/checkout@v3
2529

26-
- name: Cache Dependencies
30+
- name: Add aarch64 target
31+
if: matrix.target == 'aarch64-apple-darwin'
32+
run: rustup target add aarch64-apple-darwin
33+
34+
- name: Cache dependencies
2735
uses: Swatinem/rust-cache@v2
2836

2937
- name: Build
3038
run: cargo build --release --locked --target ${{ matrix.target }}
3139

32-
- name: Pack Artifacts [Linux & macOS]
40+
- name: Pack artifacts [Linux & macOS]
3341
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
3442
env:
35-
RELEASE_NAME: yazi-${{ matrix.target }}
43+
TARGET_NAME: yazi-${{ matrix.target }}
3644
run: |
37-
mkdir $RELEASE_NAME
38-
cp target/${{ matrix.target }}/release/yazi $RELEASE_NAME
39-
cp -r config/completions $RELEASE_NAME
40-
cp README.md LICENSE $RELEASE_NAME
41-
zip -r $RELEASE_NAME.zip $RELEASE_NAME
45+
mkdir $TARGET_NAME
46+
cp target/${{ matrix.target }}/release/yazi $TARGET_NAME
47+
cp -r config/completions $TARGET_NAME
48+
cp README.md LICENSE $TARGET_NAME
49+
zip -r $TARGET_NAME.zip $TARGET_NAME
4250
43-
- name: Pack Artifacts [Windows]
51+
- name: Pack artifacts [Windows]
4452
if: matrix.os == 'windows-latest'
4553
env:
46-
RELEASE_NAME: yazi-${{ matrix.target }}
54+
TARGET_NAME: yazi-${{ matrix.target }}
4755
run: |
48-
New-Item -ItemType Directory -Path ${env:RELEASE_NAME}
49-
Copy-Item -Path "target\${{ matrix.target }}\release\yazi.exe" -Destination ${env:RELEASE_NAME}
50-
Copy-Item -Path "config\completions" -Destination ${env:RELEASE_NAME} -Recurse
51-
Copy-Item -Path "README.md", "LICENSE" -Destination ${env:RELEASE_NAME}
52-
Compress-Archive -Path ${env:RELEASE_NAME} -DestinationPath "${env:RELEASE_NAME}.zip"
56+
New-Item -ItemType Directory -Path ${env:TARGET_NAME}
57+
Copy-Item -Path "target\${{ matrix.target }}\release\yazi.exe" -Destination ${env:TARGET_NAME}
58+
Copy-Item -Path "config\completions" -Destination ${env:TARGET_NAME} -Recurse
59+
Copy-Item -Path "README.md", "LICENSE" -Destination ${env:TARGET_NAME}
60+
Compress-Archive -Path ${env:TARGET_NAME} -DestinationPath "${env:TARGET_NAME}.zip"
5361
5462
- name: Release
5563
uses: softprops/action-gh-release@v1
5664
if: startsWith(github.ref, 'refs/tags/')
5765
with:
66+
draft: true
5867
files: yazi-${{ matrix.target }}.zip
68+
generate_release_notes: true

.github/workflows/test.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
13-
build:
13+
test:
1414
strategy:
15-
matrix:
16-
os: [ubuntu-latest, windows-latest, macos-latest]
15+
matrix:
16+
os: [ubuntu-latest, windows-latest, macos-latest]
1717

1818
runs-on: ${{ matrix.os }}
1919

2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v3
2222

23-
- name: Cache Dependencies
24-
uses: Swatinem/rust-cache@v2
23+
- name: Cache dependencies
24+
uses: Swatinem/rust-cache@v2
2525

26-
- name: Build
27-
run: cargo build --verbose
26+
- name: Build
27+
run: cargo build --verbose
2828

29-
- name: Run tests
30-
run: cargo test --verbose
29+
- name: Run tests
30+
run: cargo test --verbose

cspell.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version":"0.2","language":"en","words":["Punct","KEYMAP","splitn","crossterm","YAZI","unar","peekable","ratatui","syntect","pbpaste","pbcopy","ffmpegthumbnailer","oneshot","Posix","Lsar","XADDOS","zoxide","cands","Deque","precache","imageops","IFBLK","IFCHR","IFDIR","IFIFO","IFLNK","IFMT","IFSOCK","IRGRP","IROTH","IRUSR","ISGID","ISUID","ISVTX","IWGRP","IWOTH","IWUSR","IXGRP","IXOTH","IXUSR","libc","winsize","TIOCGWINSZ","xpixel","ypixel","ioerr","appender","Catppuccin","macchiato","gitmodules","Dotfiles","bashprofile","vimrc","flac","webp","exiftool","mediainfo","ripgrep","nvim","indexmap","indexmap","unwatch","canonicalize","serde","fsevent","Ueberzug","iterm","wezterm","sixel","chafa","ueberzugpp","️ Überzug","️ Überzug","Konsole","Alacritty","Überzug","pkgs","paru","unarchiver","pdftoppm","poppler","prebuild","singlefile","jpegopt","EXIF","rustfmt","mktemp","nanos","xclip","xsel","natord","Mintty","nixos","nixpkgs","SIGTSTP","SIGCONT","SIGCONT","mlua","nonstatic","userdata","metatable","natsort","backstack","luajit","Succ","Succ","cand","fileencoding","foldmethod","lightgreen","darkgray","lightred","lightyellow","lightcyan","nushell","msvc","aarch"],"flagWords":[]}
1+
{"version":"0.2","language":"en","words":["Punct","KEYMAP","splitn","crossterm","YAZI","unar","peekable","ratatui","syntect","pbpaste","pbcopy","ffmpegthumbnailer","oneshot","Posix","Lsar","XADDOS","zoxide","cands","Deque","precache","imageops","IFBLK","IFCHR","IFDIR","IFIFO","IFLNK","IFMT","IFSOCK","IRGRP","IROTH","IRUSR","ISGID","ISUID","ISVTX","IWGRP","IWOTH","IWUSR","IXGRP","IXOTH","IXUSR","libc","winsize","TIOCGWINSZ","xpixel","ypixel","ioerr","appender","Catppuccin","macchiato","gitmodules","Dotfiles","bashprofile","vimrc","flac","webp","exiftool","mediainfo","ripgrep","nvim","indexmap","indexmap","unwatch","canonicalize","serde","fsevent","Ueberzug","iterm","wezterm","sixel","chafa","ueberzugpp","️ Überzug","️ Überzug","Konsole","Alacritty","Überzug","pkgs","paru","unarchiver","pdftoppm","poppler","prebuild","singlefile","jpegopt","EXIF","rustfmt","mktemp","nanos","xclip","xsel","natord","Mintty","nixos","nixpkgs","SIGTSTP","SIGCONT","SIGCONT","mlua","nonstatic","userdata","metatable","natsort","backstack","luajit","Succ","Succ","cand","fileencoding","foldmethod","lightgreen","darkgray","lightred","lightyellow","lightcyan","nushell","msvc","aarch","linemode"],"flagWords":[]}

plugin/preset/components/folder.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ function Folder:linemode(area)
5959
elseif mode == "permissions" then
6060
spans[#spans + 1] = ui.Span(f:permissions() or "")
6161
end
62+
63+
spans[#spans + 1] = ui.Span(" ")
6264
lines[#lines + 1] = ui.Line(spans)
6365
end
64-
return ui.Paragraph(area:padding(ui.Padding.right(1)), lines):align(ui.Alignment.RIGHT)
66+
return ui.Paragraph(area, lines):align(ui.Alignment.RIGHT)
6567
end
6668

6769
function Folder:markers(area, markers)

0 commit comments

Comments
 (0)