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}"); -}