Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade cache and install vulkan action to fix cache v2 deprecated #3956

Merged
merged 1 commit into from
Mar 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/autofix-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ jobs:
components: rustfmt, clippy

- name: Sccache cache
uses: mozilla-actions/[email protected].3
uses: mozilla-actions/[email protected].7
with:
version: "v0.4.0"
version: "v0.10.0"

- name: Install cargo-machete
uses: actions-rs/cargo@v1
Expand All @@ -52,11 +52,11 @@ jobs:
args: --version 0.7.0 cargo-machete

- name: Cargo registry cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-${{ github.sha }}
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-${{ github.sha }}
restore-keys: |
cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-
cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-
cargo-${{ runner.os }}-
path: |
~/.cargo/registry
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/bloat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ name: bloat
permissions: write-all

concurrency:
group: ${{ github.workflow_ref }}-${{ github.head_ref || github.ref_name }}
group: ${{ github.workflow_ref }}-${{ github.head_ref || github.ref_name }}

# If this is enabled it will cancel current running and start latest
cancel-in-progress: true

Expand All @@ -43,16 +43,16 @@ jobs:
toolchain: stable

- name: Sccache cache
uses: mozilla-actions/[email protected].3
uses: mozilla-actions/[email protected].7
with:
version: "v0.4.0"
version: "v0.10.0"

- name: Cargo registry cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-${{ github.sha }}
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-${{ github.sha }}
restore-keys: |
cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-
cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-
cargo-${{ runner.os }}-
path: |
~/.cargo/registry
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ jobs:
container: quay.io/pypa/manylinux_2_28_x86_64
build_args: --features binary,vulkan
vulkan_sdk: '1.3.239.0'
- os: windows-latest
- os: windows-2019
target: x86_64-pc-windows-msvc
binary: x86_64-windows-msvc
build_args: --features binary
ext: .exe
- os: windows-latest
- os: windows-2019
target: x86_64-pc-windows-msvc
binary: x86_64-windows-msvc-vulkan
ext: .exe
Expand Down Expand Up @@ -106,16 +106,16 @@ jobs:
run: rustup default ${{ env.RUST_TOOLCHAIN }}

- name: Sccache cache
uses: mozilla-actions/[email protected].3
uses: mozilla-actions/[email protected].7
with:
version: "v0.4.0"
version: "v0.10.0"

- name: Cargo registry cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-${{ github.sha }}
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-${{ github.sha }}
restore-keys: |
cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-
cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-
cargo-${{ runner.os }}-
path: |
~/.cargo/registry
Expand All @@ -138,7 +138,7 @@ jobs:
if: runner.os == 'Windows' && matrix.windows_cuda != ''

- name: Install Vulkan SDK
uses: icycodes/install-vulkan-sdk@v1.1.1-patch
uses: TabbyML/install-vulkan-sdk@v1.2.0
with:
version: ${{ matrix.vulkan_sdk }}
cache: true
Expand Down Expand Up @@ -205,16 +205,16 @@ jobs:
run: rustup default ${{ env.RUST_TOOLCHAIN }}

- name: Sccache cache
uses: mozilla-actions/[email protected].3
uses: mozilla-actions/[email protected].7
with:
version: "v0.4.0"
version: "v0.10.0"

- name: Cargo registry cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-${{ github.sha }}
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-${{ github.sha }}
restore-keys: |
cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-
cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-
cargo-${{ runner.os }}-
path: |
~/.cargo/registry
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/test-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@ jobs:
toolchain: ${{ env.RUST_TOOLCHAIN }}

- name: Sccache cache
uses: mozilla-actions/[email protected].3
uses: mozilla-actions/[email protected].7
with:
version: "v0.4.0"
version: "v0.10.0"

- name: Cargo registry cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-${{ github.sha }}
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-${{ github.sha }}
restore-keys: |
cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-
cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-
cargo-${{ runner.os }}-
path: |
~/.cargo/registry
Expand Down Expand Up @@ -97,16 +97,16 @@ jobs:
uses: taiki-e/install-action@cargo-llvm-cov

- name: Sccache cache
uses: mozilla-actions/[email protected].3
uses: mozilla-actions/[email protected].7
with:
version: "v0.4.0"
version: "v0.10.0"

- name: Cargo registry cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-${{ github.sha }}
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-${{ github.sha }}
restore-keys: |
cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-
cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-
cargo-${{ runner.os }}-
path: |
~/.cargo/registry
Expand Down
9 changes: 7 additions & 2 deletions ci/prepare_build_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,16 @@ if [[ "$OSTYPE" == "linux"* ]]; then
if command -v apt-get ; then
apt-get -y install protobuf-compiler libopenblas-dev sqlite3 graphviz libcurl4-openssl-dev
else
# Build from manylinux2014 container
# Build from manylinux_2_28 container

# CentOS 7 is EOL after 2024 06, need to update to vault.centos.org
sed -i -e 's/mirrorlist/#mirrorlist/g' -e 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
yum -y install openblas-devel perl-IPC-Cmd unzip curl openssl-devel
yum -y install openblas-devel perl-IPC-Cmd unzip openssl-devel

# Install newer version of curl to support `--fail-with-body` on vulkan-sdk-install
curl -SLO https://mirror.city-fan.org/ftp/contrib/sysutils/Mirroring/curl-8.12.1-1.0.cf.rhel8.x86_64.rpm
curl -SLO https://mirror.city-fan.org/ftp/contrib/sysutils/Mirroring/libcurl-8.12.1-1.0.cf.rhel8.x86_64.rpm
rpm -Uvh curl-8.12.1-1.0.cf.rhel8.x86_64.rpm libcurl-8.12.1-1.0.cf.rhel8.x86_64.rpm

# Disable safe directory in docker
git config --system --add safe.directory "*"
Expand Down
Loading