-
Notifications
You must be signed in to change notification settings - Fork 399
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
8 changed files
with
55 additions
and
72 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 |
---|---|---|
|
@@ -2,8 +2,8 @@ name: Draft | |
|
||
on: | ||
push: | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
branches: [main] | ||
tags: ["v[0-9]+.[0-9]+.[0-9]+"] | ||
schedule: | ||
- cron: "0 */6 * * *" | ||
workflow_dispatch: | ||
|
@@ -26,26 +26,19 @@ 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 | ||
run: sudo apt-get update && sudo apt-get install -yq gcc-aarch64-linux-gnu | ||
|
||
- 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,30 +59,23 @@ 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' | ||
env: | ||
TARGET_NAME: yazi-${{ matrix.target }} | ||
run: | | ||
|
@@ -123,13 +109,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 | ||
|
@@ -142,6 +122,7 @@ jobs: | |
path: yazi-${{ matrix.target }}.zip | ||
|
||
build-snap: | ||
if: false # Can't make CI pass, disable for now | ||
strategy: | ||
matrix: | ||
include: | ||
|
@@ -151,13 +132,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 | ||
|
@@ -173,6 +148,7 @@ jobs: | |
path: yazi-${{ matrix.target }}.snap | ||
|
||
draft: | ||
if: startsWith(github.ref, 'refs/tags/') | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
|
@@ -184,7 +160,6 @@ jobs: | |
|
||
- name: Draft | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
draft: true | ||
files: | | ||
|
@@ -193,6 +168,7 @@ jobs: | |
generate_release_notes: true | ||
|
||
nightly: | ||
if: ${{ !startsWith(github.ref, 'refs/tags/') }} | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
|
@@ -210,7 +186,6 @@ jobs: | |
- name: Nightly | ||
uses: softprops/action-gh-release@v1 | ||
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' | ||
with: | ||
tag_name: nightly | ||
prerelease: true | ||
|
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
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