@@ -2,7 +2,6 @@ import { setupLLVM, setupClangTools } from "../llvm"
2
2
import { getSpecificVersionAndUrl } from "../../utils/setup/version"
3
3
import { isUrlOnline } from "is-url-online"
4
4
import { setupTmpDir , testBin } from "../../utils/tests/test-helpers"
5
- import { GITHUB_ACTIONS } from "ci-info"
6
5
import { execaSync } from "execa"
7
6
import path , { addExeExt } from "patha"
8
7
import { chmodSync } from "fs"
@@ -99,25 +98,6 @@ describe("setup-llvm", () => {
99
98
execaSync ( main_exe , { cwd : __dirname , stdio : "inherit" } )
100
99
} )
101
100
102
- it ( "should find llvm in the cache" , async ( ) => {
103
- const osVersion = await ubuntuVersion ( )
104
- const { binDir } = await setupLLVM ( getVersion ( "llvm" , "true" , osVersion ) , directory , process . arch )
105
- await testBin ( "clang++" , [ "--version" ] , binDir )
106
-
107
- if ( GITHUB_ACTIONS && process . platform !== "linux" ) {
108
- expect ( binDir ) . toMatch ( process . env . RUNNER_TOOL_CACHE ?? "hostedtoolcache" )
109
- // TODO returns the install dir on linux
110
- }
111
-
112
- expect ( process . env . CC ?. includes ( "clang" ) ) . toBeTruthy ( )
113
- expect ( process . env . CXX ?. includes ( "clang++" ) ) . toBeTruthy ( )
114
-
115
- if ( GITHUB_ACTIONS && process . platform !== "linux" ) {
116
- expect ( process . env . CC ) . toMatch ( "hostedtoolcache" )
117
- expect ( process . env . CXX ) . toMatch ( "hostedtoolcache" )
118
- }
119
- } )
120
-
121
101
it ( "should setup clang-tidy and clang-format" , async ( ) => {
122
102
const osVersion = await ubuntuVersion ( )
123
103
const { binDir } = await setupClangTools ( getVersion ( "llvm" , "true" , osVersion ) , directory , process . arch )
0 commit comments