From 66f47932a780c1161242be9aeecce768157b92d5 Mon Sep 17 00:00:00 2001 From: lights0123 Date: Sat, 26 Sep 2020 22:23:33 -0400 Subject: [PATCH] Statically link windows --- .cargo/config.toml | 4 ++++ .github/workflows/ci.yml | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..98b5c37 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,4 @@ +[target.x86_64-pc-windows-msvc] +rustflags = ["-Ctarget-feature=+crt-static"] +[target.i686-pc-windows-msvc] +rustflags = ["-Ctarget-feature=+crt-static"] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2650192..668cf6c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,5 +65,5 @@ jobs: npmScript: "tauri:build" - uses: actions/upload-artifact@v2 with: - name: my-artifact ${{ matrix.node-version }} - path: src-tauri/target/release/bundle + name: my-artifact-${{ runner.os }} + path: src-tauri/target/release