1
1
import { setupLLVM , VERSIONS , getUrl , setupClangTools , getLinuxUrl } from "../llvm"
2
2
import { getSpecificVersionAndUrl } from "../../utils/setup/version"
3
3
import { isUrlOnline } from "is-url-online"
4
- import { setupTmpDir , cleanupTmpDir , testBin } from "../../utils/tests/test-helpers"
4
+ import { setupTmpDir , testBin } from "../../utils/tests/test-helpers"
5
5
import ciDetect from "@npmcli/ci-detect"
6
6
import execa from "execa"
7
7
import path , { addExeExt } from "patha"
8
8
import { chmodSync } from "fs"
9
9
import { getVersion } from "../../default_versions"
10
10
import { ubuntuVersion } from "../../utils/env/ubuntu_version"
11
+ import * as io from "@actions/io"
11
12
12
13
jest . setTimeout ( 400000 )
13
14
async function testUrl ( version : string ) {
@@ -123,8 +124,8 @@ describe("setup-llvm", () => {
123
124
} )
124
125
125
126
it ( "should setup LLVM 15.0.2" , async ( ) => {
126
- await cleanupTmpDir ( "llvm" )
127
- await cleanupTmpDir ( "/Users/runner/hostedtoolcache/llvm" )
127
+ await io . rmRF ( directory )
128
+ await io . rmRF ( "/Users/runner/hostedtoolcache/llvm" )
128
129
129
130
const { binDir } = await setupLLVM ( "15.0.2" , directory , process . arch )
130
131
await testBin ( "clang++" , [ "--version" ] , binDir )
@@ -143,6 +144,6 @@ describe("setup-llvm", () => {
143
144
} )
144
145
145
146
afterAll ( async ( ) => {
146
- await cleanupTmpDir ( "llvm" )
147
+ await io . rmRF ( directory )
147
148
} , 100000 )
148
149
} )
0 commit comments