Skip to content

Commit

Permalink
Change to custom runner and enable sccache (#1065)
Browse files Browse the repository at this point in the history
* Change to custom runner and enable sccache

* Move tests to bare metal
  • Loading branch information
mc2eqe authored Oct 25, 2023
1 parent ebbc59d commit 39e8b9a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
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

0 comments on commit 39e8b9a

Please sign in to comment.