CI workflow
CI / wheels (push) Failing after 26s
CI / Release (push) Has been skipped

This commit is contained in:
w.pomp
2026-04-17 13:58:53 +02:00
parent fa82854a5d
commit ee8e57d853
+15 -14
View File
@@ -21,18 +21,11 @@ jobs:
with: with:
python-version: 3.x python-version: 3.x
- name: Install llvm
run: |
if ! command -v llvm-dlltool >/dev/null 2>&1; then
sudo apt update
sudo apt install -y llvm
fi
shell: bash
- name: Setup caching - name: Setup caching
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: | path: |
/var/cache/apt
~/.cache/pip ~/.cache/pip
~/.cache/pip-wheel ~/.cache/pip-wheel
~/.cache/sccache ~/.cache/sccache
@@ -41,19 +34,27 @@ jobs:
~/.osxcross ~/.osxcross
key: cache-ubuntu-maturin-cross-compile key: cache-ubuntu-maturin-cross-compile
- name: Install llvm
run: |
if ! command -v llvm-dlltool >/dev/null 2>&1; then
sudo apt update
sudo apt install -y llvm
fi
shell: bash
- name: Install Rust - name: Install Rust
run: | run: |
source "~/.cargo/env" 2>/dev/null
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
else else
rustup update rustup update
fi fi
shell: bash shell: bash
- name: Install sccache and maturin - name: Install sccache and maturin
run: | run: |
source "~/.cargo/env" 2>/dev/null || true source "~/.cargo/env" 2>/dev/null
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install maturin ziglang pip install maturin ziglang
if ! command -v sccache >/dev/null 2>&1; then if ! command -v sccache >/dev/null 2>&1; then
@@ -63,7 +64,7 @@ jobs:
- name: Install xwin - name: Install xwin
run: | run: |
source "~/.cargo/env" 2>/dev/null || true source "~/.cargo/env" 2>/dev/null
if ! command -v cargo-xwin >/dev/null 2>&1; then if ! command -v cargo-xwin >/dev/null 2>&1; then
cargo install cargo-xwin || pip install cargo-xwin cargo install cargo-xwin || pip install cargo-xwin
cargo xwin cache xwin cargo xwin cache xwin
@@ -72,7 +73,7 @@ jobs:
- name: Install osxcross - name: Install osxcross
run: | run: |
export PATH="~/.osxcross/bin${PATH:+:${PATH}}" export PATH="~/.osxcross/bin:$PATH"
if ! command -v osxcross >/dev/null 2>&1; then if ! command -v osxcross >/dev/null 2>&1; then
wget https://nextcloud.wimpomp.nl/s/DcrTwoP3SeY7DQF/download -O osxcross.tar.gz wget https://nextcloud.wimpomp.nl/s/DcrTwoP3SeY7DQF/download -O osxcross.tar.gz
tar -xzf osxcross.tar.gz -C ~/ tar -xzf osxcross.tar.gz -C ~/
@@ -81,8 +82,8 @@ jobs:
- name: Build wheels - name: Build wheels
run: | run: |
source "~/.cargo/env" 2>/dev/null || true source "~/.cargo/env" 2>/dev/null
export PATH="~/.osxcross/bin${PATH:+:${PATH}}" export PATH="~/.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