Skip to content

Commit

Permalink
Update windows (#180)
Browse files Browse the repository at this point in the history
* Update sccache to 0.7.6

* Update ccache on Windows to 4.9
  • Loading branch information
virtuald authored Apr 19, 2024
1 parent ba6e323 commit 40738ee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions dist/restore/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82911,20 +82911,20 @@ async function installCcacheLinux() {
throw Error("Can't install ccache automatically under this platform, please install it yourself before using this action.");
}
async function installCcacheWindows() {
await installCcacheFromGitHub("4.7.4", "windows-x86_64",
await installCcacheFromGitHub("4.9", "windows-x86_64",
// sha256sum of ccache.exe
"ac5918ea5df06d4cd2f2ca085955d29fe2a161f229e7cdf958dcf3e8fd5fe80e",
"cf18d274a54b49dcd77f6c289c26eeb89d180cb8329711e607478ed5ef74918c",
// TODO find a better place
`${external_process_namespaceObject.env.USERPROFILE}\\.cargo\\bin`, "ccache.exe");
}
async function installSccacheMac() {
await execBash("brew install sccache");
}
async function installSccacheLinux() {
await installSccacheFromGitHub("v0.7.4", "x86_64-unknown-linux-musl", "5022d140adae985c0ad018667797aec03f7fe24781c848f770d1a52fbab02057", "/usr/local/bin/", "sccache");
await installSccacheFromGitHub("v0.7.6", "x86_64-unknown-linux-musl", "59793c3b6ac65f2f3b7e3f20f93192c705838335f44a175e1f6767132016a1f6", "/usr/local/bin/", "sccache");
}
async function installSccacheWindows() {
await installSccacheFromGitHub("v0.7.4", "x86_64-pc-windows-msvc", "820d60f1a5e6bf9aa2a39d9cfd54be45ede019067b7e5d9cb22fc27dc332611f",
await installSccacheFromGitHub("v0.7.6", "x86_64-pc-windows-msvc", "48e88be2ba87dca8d74364f045894ec214b6c850e65e61ab44e5071055c9e6d3",
// TODO find a better place
`${external_process_namespaceObject.env.USERPROFILE}\\.cargo\\bin`, "sccache.exe");
}
Expand Down
12 changes: 6 additions & 6 deletions src/restore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ async function installCcacheLinux() : Promise<void> {

async function installCcacheWindows() : Promise<void> {
await installCcacheFromGitHub(
"4.7.4",
"4.9",
"windows-x86_64",
// sha256sum of ccache.exe
"ac5918ea5df06d4cd2f2ca085955d29fe2a161f229e7cdf958dcf3e8fd5fe80e",
"cf18d274a54b49dcd77f6c289c26eeb89d180cb8329711e607478ed5ef74918c",
// TODO find a better place
`${process.env.USERPROFILE}\\.cargo\\bin`,
"ccache.exe"
Expand All @@ -109,19 +109,19 @@ async function installSccacheMac() : Promise<void> {

async function installSccacheLinux() : Promise<void> {
await installSccacheFromGitHub(
"v0.7.4",
"v0.7.6",
"x86_64-unknown-linux-musl",
"5022d140adae985c0ad018667797aec03f7fe24781c848f770d1a52fbab02057",
"59793c3b6ac65f2f3b7e3f20f93192c705838335f44a175e1f6767132016a1f6",
"/usr/local/bin/",
"sccache"
);
}

async function installSccacheWindows() : Promise<void> {
await installSccacheFromGitHub(
"v0.7.4",
"v0.7.6",
"x86_64-pc-windows-msvc",
"820d60f1a5e6bf9aa2a39d9cfd54be45ede019067b7e5d9cb22fc27dc332611f",
"48e88be2ba87dca8d74364f045894ec214b6c850e65e61ab44e5071055c9e6d3",
// TODO find a better place
`${process.env.USERPROFILE}\\.cargo\\bin`,
"sccache.exe"
Expand Down

0 comments on commit 40738ee

Please sign in to comment.