From 41624600c96d2be7a6fdd8d3e94c937e6913deb0 Mon Sep 17 00:00:00 2001 From: Robin Freyler Date: Wed, 15 May 2024 09:00:54 +0200 Subject: [PATCH 1/2] add more paths to CI cache --- .github/workflows/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b3dd313..7d567ed 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -49,6 +49,9 @@ jobs: ~/.cargo/registry/cache/ ~/.cargo/git/db/ ~/target/ + ~/target/release/ + ~/target/release/build/ + ~/target/release/deps/ key: ${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }} restore-keys: ${{ runner.os }}-${{ github.job }}- - name: System Information @@ -74,6 +77,9 @@ jobs: ~/.cargo/registry/cache/ ~/.cargo/git/db/ ~/target/ + ~/target/release/ + ~/target/release/build/ + ~/target/release/deps/ key: ${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }} restore-keys: ${{ runner.os }}-${{ github.job }}- - name: System Information @@ -99,6 +105,9 @@ jobs: ~/.cargo/registry/cache/ ~/.cargo/git/db/ ~/target/ + ~/target/release/ + ~/target/release/build/ + ~/target/release/deps/ key: ${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }} restore-keys: ${{ runner.os }}-${{ github.job }}- - name: System Information From abcc500948a1d082c5c1bd20072428a72fb2d97f Mon Sep 17 00:00:00 2001 From: Robin Freyler Date: Wed, 15 May 2024 09:07:47 +0200 Subject: [PATCH 2/2] adjust profile.ci settings and docs --- Cargo.toml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8cbf4a0..489fb1e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,10 +49,11 @@ codegen-units = 1 panic = "abort" [profile.ci] -# The profile with which we compile the criterion -# benchmark runner and subsequently all Wasm runtimes -# when running them in the GitHub Actions CI. +# This profile is optimized for build speed of relatively +# optimized builds for the virtual hardware used by GitHub +# hosted Actions CI runners: +# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories inherits = "release" opt-level = 3 lto = "thin" -codegen-units = 2 +codegen-units = 4