Skip to content

Commit c1c9c25

Browse files
committed
ci: musl build
1 parent c38be35 commit c1c9c25

4 files changed

Lines changed: 22 additions & 32 deletions

File tree

.github/workflows/draft.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,40 +16,28 @@ jobs:
1616
include:
1717
- os: ubuntu-latest
1818
target: x86_64-unknown-linux-gnu
19-
- os: ubuntu-latest
20-
target: i686-unknown-linux-gnu
21-
gcc: gcc-i686-linux-gnu
2219
- os: ubuntu-latest
2320
target: aarch64-unknown-linux-gnu
2421
gcc: gcc-aarch64-linux-gnu
22+
- os: ubuntu-latest
23+
target: i686-unknown-linux-gnu
24+
gcc: gcc-i686-linux-gnu
2525
- os: ubuntu-latest
2626
target: riscv64gc-unknown-linux-gnu
2727
gcc: gcc-riscv64-linux-gnu
28-
- os: ubuntu-latest
29-
target: powerpc64-unknown-linux-gnu
30-
gcc: gcc-powerpc64-linux-gnu
31-
- os: ubuntu-latest
32-
target: powerpc64le-unknown-linux-gnu
33-
gcc: gcc-powerpc64le-linux-gnu
3428
- os: ubuntu-latest
3529
target: sparc64-unknown-linux-gnu
3630
gcc: gcc-sparc64-linux-gnu
37-
- os: ubuntu-latest
38-
target: s390x-unknown-linux-gnu
39-
gcc: gcc-s390x-linux-gnu
4031
- os: macos-latest
4132
target: x86_64-apple-darwin
4233
- os: macos-latest
4334
target: aarch64-apple-darwin
4435
runs-on: ${{ matrix.os }}
4536
env:
46-
CARGO_TARGET_I686_UNKNOWN_LINUX_GNU_LINKER: i686-linux-gnu-gcc
4737
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
38+
CARGO_TARGET_I686_UNKNOWN_LINUX_GNU_LINKER: i686-linux-gnu-gcc
4839
CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_LINKER: riscv64-linux-gnu-gcc
49-
CARGO_TARGET_POWERPC64_UNKNOWN_LINUX_GNU_LINKER: powerpc64-linux-gnu-gcc
50-
CARGO_TARGET_POWERPC64LE_UNKNOWN_LINUX_GNU_LINKER: powerpc64le-linux-gnu-gcc
5140
CARGO_TARGET_SPARC64_UNKNOWN_LINUX_GNU_LINKER: sparc64-linux-gnu-gcc
52-
CARGO_TARGET_S390X_UNKNOWN_LINUX_GNU_LINKER: s390x-linux-gnu-gcc
5341
steps:
5442
- uses: actions/checkout@v4
5543

scripts/build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ set -euo pipefail
44
export ARTIFACT_NAME="yazi-$1"
55
export YAZI_GEN_COMPLETIONS=1
66

7+
echo "pwd:"
8+
pwd
9+
10+
echo "ls -al:"
11+
ls -al
12+
13+
echo "ls -al target:"
14+
git rev-parse --is-inside-work-tree
15+
716
# Build for the target
817
cargo build --release --locked --target "$1"
918

yazi-core/src/tab/commands/linemode.rs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ use crate::tab::Tab;
55

66
impl Tab {
77
pub fn linemode(&mut self, mut c: CmdCow) {
8-
render!(self.pref.patch(|new| {
9-
let Some(mode) = c.take_first_str() else {
10-
return;
11-
};
12-
if !mode.is_empty() && mode.len() <= 20 {
13-
new.linemode = mode.into_owned();
14-
}
15-
}));
8+
let Some(new) = c.take_first_str() else { return };
9+
if new == self.pref.linemode {
10+
return;
11+
} else if new.is_empty() || new.len() > 20 {
12+
return;
13+
}
14+
15+
self.pref.linemode = new.into_owned();
16+
render!();
1617
}
1718
}

yazi-core/src/tab/preference.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@ impl Default for Preference {
3232
}
3333
}
3434

35-
impl Preference {
36-
pub(super) fn patch<F: FnOnce(&mut Self)>(&mut self, f: F) -> bool {
37-
let old = self.clone();
38-
f(self);
39-
*self != old
40-
}
41-
}
42-
4335
impl From<&Preference> for FilesSorter {
4436
fn from(value: &Preference) -> Self {
4537
FilesSorter {

0 commit comments

Comments
 (0)