-
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.
Add a test to
dotnet restore
with specific RIDs
- Loading branch information
1 parent
8b5551b
commit 548e25c
Showing
2 changed files
with
32 additions
and
0 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,10 @@ | ||
{ | ||
"name": "restore-with-rid", | ||
"enabled": true, | ||
"version": "2.1", | ||
"versionSpecific": false, | ||
"type": "bash", | ||
"cleanup": true, | ||
"platformBlacklist":[ | ||
] | ||
} |
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,22 @@ | ||
#!/usr/bin/bash | ||
|
||
set -euo pipefail | ||
set -x | ||
|
||
source /etc/os-release | ||
|
||
declare -A archmap | ||
archmap=( | ||
["aarch64"]="arm64" | ||
["amd64"]="x64" | ||
["armv8b"]="x64" | ||
["armv8l"]="x64" | ||
["i686"]="x86" | ||
["i386"]="x86" | ||
["x86_64"]="x64" | ||
) | ||
|
||
arch=${archmap["$(uname -m)"]} | ||
|
||
dotnet new console --no-restore | ||
dotnet restore -r ${ID}.${VERSION_ID}-${arch} |