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

ci: Use sccache-action instead of rust-cache #4468

Merged
merged 3 commits into from
Feb 1, 2024
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
20 changes: 17 additions & 3 deletions .github/workflows/gen_centos8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "quay.io/centos/centos:stream8"
env:
CARGO_INCREMENTAL: "0"
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

steps:
- name: "Install config manager"
Expand Down Expand Up @@ -55,10 +59,20 @@ jobs:
submodules: "recursive"
- name: "Install Rust"
uses: dtolnay/rust-toolchain@stable
- name: "Cache cargo"
uses: Swatinem/rust-cache@v2
- name: "Compile with sccache"
uses: mozilla-actions/[email protected]
- name: "Cache Rust Dependencies"
uses: actions/cache@v3
id: cache-cargo-vendor
with:
key: "centos8-None-2-${{ runner.os }}-cargo"
path: |
vendor
.cargo/config
key: "cargo-deps-${{ hashFiles('**/Cargo.lock') }}"
- name: "Vendor dependecies"
if: steps.cache-cargo-vendor.outputs.cache-hit != 'true'
shell: bash
run: "cargo vendor --locked --versioned-dirs >> .cargo/config"
- name: "Install System Deps"
shell: bash
run: "env CI=yes PATH=$PATH ./get-deps"
Expand Down
19 changes: 16 additions & 3 deletions .github/workflows/gen_centos8_continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
container: "quay.io/centos/centos:stream8"
env:
BUILD_REASON: "Schedule"
CARGO_INCREMENTAL: "0"
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

steps:
- name: "Install config manager"
Expand Down Expand Up @@ -59,10 +62,20 @@ jobs:
submodules: "recursive"
- name: "Install Rust"
uses: dtolnay/rust-toolchain@stable
- name: "Cache cargo"
uses: Swatinem/rust-cache@v2
- name: "Compile with sccache"
uses: mozilla-actions/[email protected]
- name: "Cache Rust Dependencies"
uses: actions/cache@v3
id: cache-cargo-vendor
with:
key: "centos8-None-2-${{ runner.os }}-cargo"
path: |
vendor
.cargo/config
key: "cargo-deps-${{ hashFiles('**/Cargo.lock') }}"
- name: "Vendor dependecies"
if: steps.cache-cargo-vendor.outputs.cache-hit != 'true'
shell: bash
run: "cargo vendor --locked --versioned-dirs >> .cargo/config"
- name: "Install System Deps"
shell: bash
run: "env CI=yes PATH=$PATH ./get-deps"
Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/gen_centos8_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "quay.io/centos/centos:stream8"
env:
CARGO_INCREMENTAL: "0"
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

steps:
- name: "Install config manager"
Expand Down Expand Up @@ -38,10 +42,20 @@ jobs:
submodules: "recursive"
- name: "Install Rust"
uses: dtolnay/rust-toolchain@stable
- name: "Cache cargo"
uses: Swatinem/rust-cache@v2
- name: "Compile with sccache"
uses: mozilla-actions/[email protected]
- name: "Cache Rust Dependencies"
uses: actions/cache@v3
id: cache-cargo-vendor
with:
key: "centos8-None-2-${{ runner.os }}-cargo"
path: |
vendor
.cargo/config
key: "cargo-deps-${{ hashFiles('**/Cargo.lock') }}"
- name: "Vendor dependecies"
if: steps.cache-cargo-vendor.outputs.cache-hit != 'true'
shell: bash
run: "cargo vendor --locked --versioned-dirs >> .cargo/config"
- name: "Install System Deps"
shell: bash
run: "env CI=yes PATH=$PATH ./get-deps"
Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/gen_centos9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "quay.io/centos/centos:stream9"
env:
CARGO_INCREMENTAL: "0"
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

steps:
- name: "Install config manager"
Expand Down Expand Up @@ -55,10 +59,20 @@ jobs:
submodules: "recursive"
- name: "Install Rust"
uses: dtolnay/rust-toolchain@stable
- name: "Cache cargo"
uses: Swatinem/rust-cache@v2
- name: "Compile with sccache"
uses: mozilla-actions/[email protected]
- name: "Cache Rust Dependencies"
uses: actions/cache@v3
id: cache-cargo-vendor
with:
key: "centos9-None-2-${{ runner.os }}-cargo"
path: |
vendor
.cargo/config
key: "cargo-deps-${{ hashFiles('**/Cargo.lock') }}"
- name: "Vendor dependecies"
if: steps.cache-cargo-vendor.outputs.cache-hit != 'true'
shell: bash
run: "cargo vendor --locked --versioned-dirs >> .cargo/config"
- name: "Install System Deps"
shell: bash
run: "env CI=yes PATH=$PATH ./get-deps"
Expand Down
19 changes: 16 additions & 3 deletions .github/workflows/gen_centos9_continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
container: "quay.io/centos/centos:stream9"
env:
BUILD_REASON: "Schedule"
CARGO_INCREMENTAL: "0"
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

steps:
- name: "Install config manager"
Expand Down Expand Up @@ -59,10 +62,20 @@ jobs:
submodules: "recursive"
- name: "Install Rust"
uses: dtolnay/rust-toolchain@stable
- name: "Cache cargo"
uses: Swatinem/rust-cache@v2
- name: "Compile with sccache"
uses: mozilla-actions/[email protected]
- name: "Cache Rust Dependencies"
uses: actions/cache@v3
id: cache-cargo-vendor
with:
key: "centos9-None-2-${{ runner.os }}-cargo"
path: |
vendor
.cargo/config
key: "cargo-deps-${{ hashFiles('**/Cargo.lock') }}"
- name: "Vendor dependecies"
if: steps.cache-cargo-vendor.outputs.cache-hit != 'true'
shell: bash
run: "cargo vendor --locked --versioned-dirs >> .cargo/config"
- name: "Install System Deps"
shell: bash
run: "env CI=yes PATH=$PATH ./get-deps"
Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/gen_centos9_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "quay.io/centos/centos:stream9"
env:
CARGO_INCREMENTAL: "0"
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

steps:
- name: "Install config manager"
Expand Down Expand Up @@ -38,10 +42,20 @@ jobs:
submodules: "recursive"
- name: "Install Rust"
uses: dtolnay/rust-toolchain@stable
- name: "Cache cargo"
uses: Swatinem/rust-cache@v2
- name: "Compile with sccache"
uses: mozilla-actions/[email protected]
- name: "Cache Rust Dependencies"
uses: actions/cache@v3
id: cache-cargo-vendor
with:
key: "centos9-None-2-${{ runner.os }}-cargo"
path: |
vendor
.cargo/config
key: "cargo-deps-${{ hashFiles('**/Cargo.lock') }}"
- name: "Vendor dependecies"
if: steps.cache-cargo-vendor.outputs.cache-hit != 'true'
shell: bash
run: "cargo vendor --locked --versioned-dirs >> .cargo/config"
- name: "Install System Deps"
shell: bash
run: "env CI=yes PATH=$PATH ./get-deps"
Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/gen_debian10.3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "debian:10.3"
env:
CARGO_INCREMENTAL: "0"
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

steps:
- name: "set APT to non-interactive"
Expand Down Expand Up @@ -58,10 +62,20 @@ jobs:
submodules: "recursive"
- name: "Install Rust"
uses: dtolnay/rust-toolchain@stable
- name: "Cache cargo"
uses: Swatinem/rust-cache@v2
- name: "Compile with sccache"
uses: mozilla-actions/[email protected]
- name: "Cache Rust Dependencies"
uses: actions/cache@v3
id: cache-cargo-vendor
with:
key: "debian10.3-None-2-${{ runner.os }}-cargo"
path: |
vendor
.cargo/config
key: "cargo-deps-${{ hashFiles('**/Cargo.lock') }}"
- name: "Vendor dependecies"
if: steps.cache-cargo-vendor.outputs.cache-hit != 'true'
shell: bash
run: "cargo vendor --locked --versioned-dirs >> .cargo/config"
- name: "Install System Deps"
shell: bash
run: "env CI=yes PATH=$PATH ./get-deps"
Expand Down
19 changes: 16 additions & 3 deletions .github/workflows/gen_debian10.3_continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
container: "debian:10.3"
env:
BUILD_REASON: "Schedule"
CARGO_INCREMENTAL: "0"
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

steps:
- name: "set APT to non-interactive"
Expand Down Expand Up @@ -62,10 +65,20 @@ jobs:
submodules: "recursive"
- name: "Install Rust"
uses: dtolnay/rust-toolchain@stable
- name: "Cache cargo"
uses: Swatinem/rust-cache@v2
- name: "Compile with sccache"
uses: mozilla-actions/[email protected]
- name: "Cache Rust Dependencies"
uses: actions/cache@v3
id: cache-cargo-vendor
with:
key: "debian10.3-None-2-${{ runner.os }}-cargo"
path: |
vendor
.cargo/config
key: "cargo-deps-${{ hashFiles('**/Cargo.lock') }}"
- name: "Vendor dependecies"
if: steps.cache-cargo-vendor.outputs.cache-hit != 'true'
shell: bash
run: "cargo vendor --locked --versioned-dirs >> .cargo/config"
- name: "Install System Deps"
shell: bash
run: "env CI=yes PATH=$PATH ./get-deps"
Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/gen_debian10.3_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "debian:10.3"
env:
CARGO_INCREMENTAL: "0"
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

steps:
- name: "set APT to non-interactive"
Expand Down Expand Up @@ -41,10 +45,20 @@ jobs:
submodules: "recursive"
- name: "Install Rust"
uses: dtolnay/rust-toolchain@stable
- name: "Cache cargo"
uses: Swatinem/rust-cache@v2
- name: "Compile with sccache"
uses: mozilla-actions/[email protected]
- name: "Cache Rust Dependencies"
uses: actions/cache@v3
id: cache-cargo-vendor
with:
key: "debian10.3-None-2-${{ runner.os }}-cargo"
path: |
vendor
.cargo/config
key: "cargo-deps-${{ hashFiles('**/Cargo.lock') }}"
- name: "Vendor dependecies"
if: steps.cache-cargo-vendor.outputs.cache-hit != 'true'
shell: bash
run: "cargo vendor --locked --versioned-dirs >> .cargo/config"
- name: "Install System Deps"
shell: bash
run: "env CI=yes PATH=$PATH ./get-deps"
Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/gen_debian11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "debian:11"
env:
CARGO_INCREMENTAL: "0"
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

steps:
- name: "set APT to non-interactive"
Expand Down Expand Up @@ -58,10 +62,20 @@ jobs:
submodules: "recursive"
- name: "Install Rust"
uses: dtolnay/rust-toolchain@stable
- name: "Cache cargo"
uses: Swatinem/rust-cache@v2
- name: "Compile with sccache"
uses: mozilla-actions/[email protected]
- name: "Cache Rust Dependencies"
uses: actions/cache@v3
id: cache-cargo-vendor
with:
key: "debian11-None-2-${{ runner.os }}-cargo"
path: |
vendor
.cargo/config
key: "cargo-deps-${{ hashFiles('**/Cargo.lock') }}"
- name: "Vendor dependecies"
if: steps.cache-cargo-vendor.outputs.cache-hit != 'true'
shell: bash
run: "cargo vendor --locked --versioned-dirs >> .cargo/config"
- name: "Install System Deps"
shell: bash
run: "env CI=yes PATH=$PATH ./get-deps"
Expand Down
19 changes: 16 additions & 3 deletions .github/workflows/gen_debian11_continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
container: "debian:11"
env:
BUILD_REASON: "Schedule"
CARGO_INCREMENTAL: "0"
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

steps:
- name: "set APT to non-interactive"
Expand Down Expand Up @@ -62,10 +65,20 @@ jobs:
submodules: "recursive"
- name: "Install Rust"
uses: dtolnay/rust-toolchain@stable
- name: "Cache cargo"
uses: Swatinem/rust-cache@v2
- name: "Compile with sccache"
uses: mozilla-actions/[email protected]
- name: "Cache Rust Dependencies"
uses: actions/cache@v3
id: cache-cargo-vendor
with:
key: "debian11-None-2-${{ runner.os }}-cargo"
path: |
vendor
.cargo/config
key: "cargo-deps-${{ hashFiles('**/Cargo.lock') }}"
- name: "Vendor dependecies"
if: steps.cache-cargo-vendor.outputs.cache-hit != 'true'
shell: bash
run: "cargo vendor --locked --versioned-dirs >> .cargo/config"
- name: "Install System Deps"
shell: bash
run: "env CI=yes PATH=$PATH ./get-deps"
Expand Down
Loading
Loading