mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-26 12:32:10 +00:00
No sccache.
This commit is contained in:
parent
709d70305d
commit
2eac0951b1
32
.github/workflows/tests.yaml
vendored
32
.github/workflows/tests.yaml
vendored
@ -36,7 +36,7 @@ jobs:
|
|||||||
# Released on: 28 December, 2023
|
# Released on: 28 December, 2023
|
||||||
# Branched from master on: 10 November, 2023
|
# Branched from master on: 10 November, 2023
|
||||||
# https://releases.rs/docs/1.75.0/
|
# https://releases.rs/docs/1.75.0/
|
||||||
toolchain: 1.75.0
|
toolchain: 1.78.0
|
||||||
override: true
|
override: true
|
||||||
components: rustfmt, clippy
|
components: rustfmt, clippy
|
||||||
- name: Install Protoc
|
- name: Install Protoc
|
||||||
@ -91,11 +91,6 @@ jobs:
|
|||||||
runs-on:
|
runs-on:
|
||||||
group: intel-pvc-tgi
|
group: intel-pvc-tgi
|
||||||
|
|
||||||
env:
|
|
||||||
SCCACHE_GHA_ENABLED: "on"
|
|
||||||
RUSTC_WRAPPER: /usr/local/bin/sccache
|
|
||||||
SCCACHE: 0.3.3
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
@ -116,28 +111,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
|
rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
|
||||||
rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
|
rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
|
||||||
- name: Install sccache
|
|
||||||
run: |
|
|
||||||
curl -fsSL https://github.com/mozilla/sccache/releases/download/v$SCCACHE/sccache-v$SCCACHE-x86_64-unknown-linux-musl.tar.gz | tar -xzv --strip-components=1 -C /opt/ sccache-v$SCCACHE-x86_64-unknown-linux-musl/sccache
|
|
||||||
chmod +x /usr/bin/sccache
|
|
||||||
- name: configure sccache
|
|
||||||
uses: actions/github-script@v6
|
|
||||||
with:
|
|
||||||
script: |
|
|
||||||
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
|
|
||||||
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
|
|
||||||
core.exportVariable('SCCACHE_GHA_CACHE_TO', 'sccache-${{runner.os}}-${{github.ref_name}}');
|
|
||||||
core.exportVariable('SCCACHE_GHA_CACHE_FROM', 'sccache-${{runner.os}}-main,sccache-${{runner.os}}-');
|
|
||||||
- name: cargo registry cache
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-${{ github.sha }}
|
|
||||||
restore-keys: |
|
|
||||||
cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-
|
|
||||||
cargo-${{ runner.os }}-
|
|
||||||
path: |
|
|
||||||
~/.cargo/registry
|
|
||||||
~/.cargo/git
|
|
||||||
- name: Install
|
- name: Install
|
||||||
run: |
|
run: |
|
||||||
make install
|
make install
|
||||||
@ -154,6 +127,3 @@ jobs:
|
|||||||
- name: Run Rust tests
|
- name: Run Rust tests
|
||||||
run: |
|
run: |
|
||||||
cargo test
|
cargo test
|
||||||
- name: /opt/sccache stats
|
|
||||||
run: |
|
|
||||||
/opt/sccache --show-stats
|
|
Loading…
Reference in New Issue
Block a user