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

Change to custom runner and enable sccache #1065

Merged
merged 2 commits into from
Oct 25, 2023
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
19 changes: 8 additions & 11 deletions .github/workflows/base_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,19 @@ concurrency:

jobs:
compile-and-check:
runs-on: ubuntu-latest
runs-on: [self-hosted, Linux, X64]
steps:
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
df -h

- name: Checkout the source code
uses: actions/checkout@v3

- name: Install deps
run: sudo apt -y install protobuf-compiler
run: |
sudo apt -y install protobuf-compiler pkg-config
if ! command -v sccache; then
cargo install sccache --locked
fi
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
echo "SCCACHE_CACHE_SIZE=100G" >> $GITHUB_ENV

- name: Install & display rust toolchain
run: rustup show
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,8 @@ concurrency:

jobs:
test-runtimes:
runs-on: ubuntu-latest
runs-on: [self-hosted, Linux, X64]
steps:
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
df -h

- name: Checkout the source code
uses: actions/checkout@v3

Expand Down
Loading