mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-11-24 15:07:37 +03:00
add tests to Windows CI
This commit is contained in:
parent
1211f860b6
commit
69c29269ed
2
.github/workflows/ci-windows.yml
vendored
2
.github/workflows/ci-windows.yml
vendored
@ -45,4 +45,4 @@ jobs:
|
||||
run: |
|
||||
scheme --version
|
||||
- name: Bootstrap and install
|
||||
run: c:\msys64\usr\bin\bash -l -c "cd $env:PWD && make bootstrap && make install"
|
||||
run: c:\msys64\usr\bin\bash -l -c "cd $env:PWD && make bootstrap && make bootstrap-test && make install"
|
||||
|
@ -264,10 +264,11 @@ Show Requirement where
|
||||
export
|
||||
checkRequirement : Requirement -> IO (Maybe String)
|
||||
checkRequirement req
|
||||
= do let (envvar, paths) = requirement req
|
||||
Just exec <- getEnv envvar | Nothing => pathLookup paths
|
||||
pure (Just exec)
|
||||
|
||||
= if platformSupport req
|
||||
then do let (envvar, paths) = requirement req
|
||||
Just exec <- getEnv envvar | Nothing => pathLookup paths
|
||||
pure (Just exec)
|
||||
else pure Nothing
|
||||
where
|
||||
requirement : Requirement -> (String, List String)
|
||||
requirement C = ("CC", ["cc"])
|
||||
@ -275,6 +276,10 @@ checkRequirement req
|
||||
requirement Node = ("NODE", ["node"])
|
||||
requirement Racket = ("RACKET", ["racket"])
|
||||
requirement Gambit = ("GAMBIT", ["gsc"])
|
||||
platformSupport : Requirement -> Bool
|
||||
platformSupport C = not isWindows
|
||||
platformSupport Racket = not isWindows
|
||||
platformSupport _ = True
|
||||
|
||||
export
|
||||
findCG : IO (Maybe String)
|
||||
|
Loading…
Reference in New Issue
Block a user