forked from aws-samples/aws-cdk-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(repo): add dotnet buildscripts (aws-samples#229)
- Adds dotnet build script build-csharp.sh and modified build.sh to run the former - Minor fixes to build scripts to improve consistency
- Loading branch information
Showing
4 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
scriptdir=$(cd $(dirname $0) && pwd) | ||
|
||
# install CDK CLI from npm, so that npx can find it later | ||
cd $scriptdir/../csharp | ||
npm install | ||
|
||
# Find and build all CSharp projects | ||
for projFile in $(find $scriptdir/../csharp -name cdk.json); do | ||
( | ||
echo "==============================" | ||
echo "building project: $projFile" | ||
echo "==============================" | ||
|
||
cd $(dirname $projFile) | ||
if [[ -f DO_NOT_AUTOTEST ]]; then exit 0; fi | ||
|
||
dotnet build src | ||
|
||
$scriptdir/synth.sh | ||
) | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters