CI workflow
This commit is contained in:
@@ -51,36 +51,35 @@ jobs:
|
|||||||
set -e
|
set -e
|
||||||
export RUSTUP_HOME="${{ runner.temp }}/rustup"
|
export RUSTUP_HOME="${{ runner.temp }}/rustup"
|
||||||
export CARGO_HOME="${{ runner.temp }}/cargo"
|
export CARGO_HOME="${{ runner.temp }}/cargo"
|
||||||
export PATH="$CARGO_HOME/bin:$PATH"
|
|
||||||
if ! command -v rustc >/dev/null 2>&1; then
|
if ! command -v rustc >/dev/null 2>&1; then
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
fi
|
fi
|
||||||
source "$CARGO_HOME/env" 2>/dev/null || true
|
source "$CARGO_HOME/env" 2>/dev/null || true
|
||||||
rustup default nightly
|
rustup default nightly
|
||||||
rustup target add x86_64-unknown-linux-gnu
|
rustup target add x86_64-unknown-linux-gnu --toolchain nightly
|
||||||
rustup target add x86_64-pc-windows-msvc
|
rustup target add x86_64-pc-windows-msvc --toolchain nightly
|
||||||
echo "Hello world!"
|
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Install sccache and maturin
|
- name: Install sccache and maturin
|
||||||
run: |
|
run: |
|
||||||
export RUSTUP_HOME="${{ runner.temp }}/rustup"
|
export RUSTUP_HOME="${{ runner.temp }}/rustup"
|
||||||
export CARGO_HOME="${{ runner.temp }}/cargo"
|
export CARGO_HOME="${{ runner.temp }}/cargo"
|
||||||
export PATH="$CARGO_HOME/bin:$PATH"
|
source "$CARGO_HOME/env" 2>/dev/null || true
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install maturin cargo-xwin
|
pip install maturin
|
||||||
if ! command -v sccache >/dev/null 2>&1; then
|
if ! command -v sccache >/dev/null 2>&1; then
|
||||||
cargo install sccache || pip install sccache
|
cargo install sccache || pip install sccache
|
||||||
|
cargo install cargo-xwin || pip install cargo-xwin
|
||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
run: |
|
run: |
|
||||||
export CARGO_HOME="${{ runner.temp }}/cargo"
|
export CARGO_HOME="${{ runner.temp }}/cargo"
|
||||||
export PATH="$CARGO_HOME/bin:$PATH"
|
source "$CARGO_HOME/env" 2>/dev/null || true
|
||||||
maturin sdist --out dist
|
maturin sdist --out dist
|
||||||
|
maturin build --release --out dist --target x86_64-pc-windows-msvc -i python.exe3.14
|
||||||
maturin build --release --out dist --target x86_64-unknown-linux-gnu
|
maturin build --release --out dist --target x86_64-unknown-linux-gnu
|
||||||
maturin build --release --out dist --target x86_64-pc-windows-msvc
|
|
||||||
|
|
||||||
- name: Upload wheels
|
- name: Upload wheels
|
||||||
uses: actions/upload-artifact@v3.2.2
|
uses: actions/upload-artifact@v3.2.2
|
||||||
|
|||||||
Reference in New Issue
Block a user