Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
fix(CI/CD): 移除对 nightly toolchain 的需求
Browse files Browse the repository at this point in the history
  • Loading branch information
BillGoldenWater committed May 12, 2023
1 parent 51cf40c commit 22c929a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ skip_crate_env_info = true

# region setup
[tasks.setup]
dependencies = ["setup-rustup-toolchain-nightly", "setup-rustup-target", "setup-rustup-target-wasm"]
dependencies = ["setup-rustup-target", "setup-rustup-target-wasm"]

[tasks.setup-rustup-toolchain-nightly]
command = "rustup"
Expand Down Expand Up @@ -69,7 +69,7 @@ rm -rf dist
# region share
[tasks.build-share]
dependencies = ["clean-share"]
install_crate = { crate_name = "wasm-pack", binary = "wasm-pack", test_arg = ["--help"] }
install_crate = { crate_name = "wasm-pack", binary = "wasm-pack", test_arg = ["--help"], force = false }
install_crate_args = ["--no-default-features"]
cwd = "./share"
command = "wasm-pack"
Expand All @@ -87,8 +87,8 @@ rm -rf pkg
# region ts-binding
[tasks.gen-ts-binding]
dependencies = ["clean-ts-binding"]
install_crate = { crate_name = "type_exporter", binary = "type_exporter", install_command = "+nightly", test_arg = ["--help"], force = false }
install_crate_args = ["install", "--git", "https://github.com/BillGoldenWater/type_exporter"]
install_crate = { crate_name = "type_exporter", binary = "type_exporter", test_arg = ["--help"], force = false }
install_crate_args = ["--git", "https://github.com/BillGoldenWater/type_exporter"]
env = { "RUST_LOG" = "info" }
command = "type_exporter"
args = ["-i", "share", "-o", "frontend/src/share/type/rust"]
Expand Down Expand Up @@ -123,7 +123,7 @@ args = ["clippy", "-r", "--target", "x86_64-pc-windows-msvc", "--", "-Dwarnings"
# region build
[tasks.ci-build]
dependencies = ["setup", "build-share", "init-frontend", "gen-ts-binding"]
install_crate = "tauri-cli"
install_crate = { crate_name = "tauri-cli", force = false }
run_task = [{ name = "ci-build-x86" }, { name = "ci-build-arm" }]

[tasks.ci-build-x86.mac]
Expand Down

0 comments on commit 22c929a

Please sign in to comment.