-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: implement
FromLua
for Cha
instead of AnyUserData
- Loading branch information
Showing
7 changed files
with
31 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,13 +21,7 @@ jobs: | |
rustup toolchain install stable --profile minimal | ||
rustup component add clippy | ||
- name: Setup Rust cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
prefix-key: rust | ||
shared-key: ubuntu-latest@debug | ||
|
||
- name: Run sccache-cache | ||
- name: Setup sccache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Clippy | ||
|
@@ -44,13 +38,7 @@ jobs: | |
rustup toolchain install nightly --profile minimal | ||
rustup component add rustfmt --toolchain nightly | ||
- name: Setup Rust cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
prefix-key: rust | ||
shared-key: ubuntu-latest@debug | ||
|
||
- name: Run sccache-cache | ||
- name: Setup sccache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Rustfmt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,26 +26,20 @@ jobs: | |
- os: macos-latest | ||
target: aarch64-apple-darwin | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install gcc-aarch64-linux-gnu | ||
if: matrix.target == 'aarch64-unknown-linux-gnu' | ||
run: | | ||
sudo apt-get update && sudo apt-get install -yq gcc-aarch64-linux-gnu | ||
echo "JEMALLOC_SYS_WITH_LG_PAGE=16" >> $GITHUB_ENV | ||
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=/usr/bin/aarch64-linux-gnu-gcc" >> $GITHUB_ENV | ||
- name: Setup Rust toolchain | ||
run: rustup toolchain install stable --profile minimal --target ${{ matrix.target }} | ||
|
||
- name: Setup Rust cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
prefix-key: rust | ||
shared-key: ${{ matrix.target }}@release | ||
|
||
- name: Run sccache-cache | ||
- name: Setup sccache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Build | ||
|
@@ -66,27 +60,21 @@ jobs: | |
- os: windows-latest | ||
target: aarch64-pc-windows-msvc | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
YAZI_GEN_COMPLETIONS: true | ||
CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_LINKER: lld-link.exe | ||
CARGO_TARGET_AARCH64_PC_WINDOWS_MSVC_LINKER: lld-link.exe | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Rust toolchain | ||
run: rustup toolchain install stable --profile minimal --target ${{ matrix.target }} | ||
|
||
- name: Setup Rust cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
prefix-key: rust | ||
shared-key: ${{ matrix.target }}@release | ||
|
||
- name: Run sccache-cache | ||
- name: Setup sccache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Build | ||
env: | ||
YAZI_GEN_COMPLETIONS: true | ||
run: | | ||
cargo build -p yazi-cli --release --locked --target ${{ matrix.target }} | ||
cargo build -p yazi-fm --release --locked --target ${{ matrix.target }} | ||
run: cargo build --release --locked --target ${{ matrix.target }} | ||
|
||
- name: Pack artifact | ||
if: matrix.os == 'windows-latest' | ||
|
@@ -123,13 +111,7 @@ jobs: | |
- name: Add musl target | ||
run: rustup target add ${{ matrix.target }} | ||
|
||
- name: Setup Rust cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
prefix-key: rust | ||
shared-key: ${{ matrix.target }}@release | ||
|
||
- name: Run sccache-cache | ||
- name: Setup sccache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Build | ||
|
@@ -151,13 +133,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Rust cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
prefix-key: rust | ||
shared-key: ${{ matrix.target }}@release | ||
|
||
- name: Run sccache-cache | ||
- name: Setup sccache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,13 +23,7 @@ jobs: | |
- name: Setup Rust toolchain | ||
run: rustup toolchain install stable --profile minimal | ||
|
||
- name: Setup Rust cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
prefix-key: rust | ||
shared-key: ${{ matrix.os }}@debug | ||
|
||
- name: Run sccache-cache | ||
- name: Setup sccache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters