From 426c0e9705d455b50c1076e522f76e8bc21e4dd5 Mon Sep 17 00:00:00 2001 From: Parth Desai Date: Mon, 29 Jan 2024 13:35:11 +0530 Subject: [PATCH] address review feedback --- .github/workflows/ci-tests.yml | 8 ++++---- build.rs | 5 ----- 2 files changed, 4 insertions(+), 9 deletions(-) delete mode 100644 build.rs diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index d7b02948..4f15934c 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -32,7 +32,7 @@ env: jobs: fmt: - runs-on: ${{ fromJson(github.repository_owner == 'subspace' && '["self-hosted", "ubuntu-20.04-x86-64"]' || 'ubuntu-22.04') }} + runs-on: ${{ fromJson(github.repository_owner == 'subspace' && '["self-hosted", "ubuntu-20.04-x86-64"]' || '"ubuntu-22.04"') }} steps: - name: git checkout uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 @@ -163,9 +163,9 @@ jobs: ~/.cargo/registry ~/.cargo/bin ~/.cargo/git - target - key: test-${{ runner.os }}-${{ hashFiles('rust-toolchain.toml') }}-${{ hashFiles('**/Cargo.lock') }} - restore-keys: test-${{ runner.os }}-${{ hashFiles('rust-toolchain.toml') }} + key: ${{ runner.os }}-${{ runner.arch }}-cargo-${{ hashFiles('**/Cargo.toml') }} + restore-keys: | + ${{ runner.os }}-${{ runner.arch }}-cargo- - name: Install utils for caching if: runner.os != 'Windows' diff --git a/build.rs b/build.rs deleted file mode 100644 index 364bd6f5..00000000 --- a/build.rs +++ /dev/null @@ -1,5 +0,0 @@ -fn main() { - let output = std::process::Command::new("git").args(["rev-parse", "HEAD"]).output().unwrap(); - let git_hash = String::from_utf8(output.stdout).unwrap(); - println!("cargo:rustc-env=GIT_HASH={git_hash}"); -}