Skip to content

Commit

Permalink
Build artifacts for Windows arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Feb 6, 2022
1 parent 6dd1d3a commit 99a7f61
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,12 @@ jobs:
target: x86_64-pc-windows-msvc
- arch: x86
target: i686-pc-windows-msvc
- arch: arm64
target: aarch64-pc-windows-msvc
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
if: matrix.platform.arch != 'arm64'
with:
python-version: 3.9
architecture: ${{ matrix.platform.arch }}
Expand All @@ -97,11 +100,19 @@ jobs:
- name: Cache cargo build
uses: Swatinem/rust-cache@v1
- name: Build wheels
if: matrix.platform.arch != 'arm64'
uses: messense/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --no-sdist --strip
- name: Build wheels
if: matrix.platform.arch == 'arm64'
uses: messense/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --no-sdist --strip --cargo-extra-args="--no-default-features" --cargo-extra-args="--features atomic64,native-tls"
- name: Install built wheel
if: matrix.platform.arch != 'arm64'
run: |
pip install aliyundrive-webdav --no-index --find-links dist --force-reinstall
aliyundrive-webdav --help
Expand Down
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::future::Future;
use std::net::ToSocketAddrs;
use std::path::{Path, PathBuf};
use std::path::PathBuf;
use std::pin::Pin;
use std::task::{Context, Poll};
use std::{env, io};
Expand All @@ -19,6 +19,7 @@ use {
rustls::{Certificate, PrivateKey, ServerConfig},
std::fs::File,
std::future::ready,
std::path::Path,
tls_listener::TlsListener,
};

Expand Down

0 comments on commit 99a7f61

Please sign in to comment.