Skip to content

Commit 06dd8bd

Browse files
author
Daniel Kroening
committed
AWS codebuild for windows: rename build directory
1 parent 3a9c825 commit 06dd8bd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

buildspec-windows.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ version: 0.2
33
phases:
44
install:
55
commands:
6+
- |
7+
# Codebuild sets up a directory whose name changes with every build.
8+
# We create a symlink with a fixed name to enable clcache to get cache hits.
9+
Set-Location -Path "c:\codebuild\tmp"
10+
New-Item -ItemType Junction -Name builddir -Value $env:CODEBUILD_SRC_DIR
11+
Set-Location -Path "c:\codebuild\tmp\builddir"
12+
613
- choco install cyg-get -y --no-progress
714
- cyg-get bash patch bison flex make wget perl
815
- nuget install clcache -OutputDirectory "c:\tools" -ExcludeVersion -Version 4.1.0
@@ -11,7 +18,7 @@ phases:
1118
commands:
1219
- |
1320
$env:Path = "C:\tools\cygwin\bin;$env:Path"
14-
C:\tools\cygwin\bin\bash -c "make -C src minisat2-download DOWNLOADER=wget"
21+
bash -c "make -C src minisat2-download DOWNLOADER=wget"
1522
1623
- |
1724
$env:Path = "C:\tools\cygwin\bin;c:\tools\clcache\clcache-4.1.0;$env:Path"

0 commit comments

Comments
 (0)