diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f3daec2..ab962ee 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -21,12 +21,6 @@ jobs: with: python-version: 3.x - - uses: awalsh128/cache-apt-pkgs-action@v1 - with: - packages: | - llvm - execute_install_scripts: true - - name: Restore cache uses: actions/cache/restore@v4 with: @@ -37,15 +31,16 @@ jobs: ~/.cache/cargo-xwin ~/.cargo ~/.osxcross + ~/.apt 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 llvm + run: | + if ! command -v llvm-dlltool >/dev/null 2>&1; then + sudo apt -o Dir::Cache=".apt" update + sudo apt -o Dir::Cache=".apt" install -y llvm + fi + shell: bash - name: Install Rust run: | @@ -116,6 +111,7 @@ jobs: ~/.cache/cargo-xwin ~/.cargo ~/.osxcross + ~/.apt key: cache-ubuntu-maturin-cross-compile - name: Upload wheels