CI workflow
This commit is contained in:
@@ -21,8 +21,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
|
|
||||||
- name: Setup caching
|
- name: Restore cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache/restore@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
/var/cache/apt
|
/var/cache/apt
|
||||||
@@ -85,6 +85,7 @@ jobs:
|
|||||||
export PATH="$HOME/.cargo/bin:$HOME/.osxcross/bin:$PATH"
|
export PATH="$HOME/.cargo/bin:$HOME/.osxcross/bin:$PATH"
|
||||||
maturin sdist --out dist
|
maturin sdist --out dist
|
||||||
rustup default nightly
|
rustup default nightly
|
||||||
|
|
||||||
rustup target add x86_64-unknown-linux-gnu --toolchain nightly
|
rustup target add x86_64-unknown-linux-gnu --toolchain nightly
|
||||||
maturin build --release --out dist --target x86_64-unknown-linux-gnu
|
maturin build --release --out dist --target x86_64-unknown-linux-gnu
|
||||||
rustup target add aarch64-unknown-linux-gnu --toolchain nightly
|
rustup target add aarch64-unknown-linux-gnu --toolchain nightly
|
||||||
@@ -100,6 +101,19 @@ jobs:
|
|||||||
rustup target add aarch64-apple-darwin --toolchain nightly
|
rustup target add aarch64-apple-darwin --toolchain nightly
|
||||||
maturin build --release --out dist --target aarch64-apple-darwin --zig
|
maturin build --release --out dist --target aarch64-apple-darwin --zig
|
||||||
|
|
||||||
|
- name: Store cache
|
||||||
|
uses: actions/cache/save@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
/var/cache/apt
|
||||||
|
~/.cache/pip
|
||||||
|
~/.cache/pip-wheel
|
||||||
|
~/.cache/sccache
|
||||||
|
~/.cache/cargo-xwin
|
||||||
|
~/.cargo
|
||||||
|
~/.osxcross
|
||||||
|
key: cache-ubuntu-maturin-cross-compile
|
||||||
|
|
||||||
- name: Upload wheels
|
- name: Upload wheels
|
||||||
uses: actions/upload-artifact@v3.2.2
|
uses: actions/upload-artifact@v3.2.2
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user