-
-
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.
build(BouncyCastle): initial commit (#7)
- Loading branch information
Showing
8 changed files
with
61 additions
and
5 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 |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: cachix/install-nix-action@v30 | ||
- name: Build UPM packages | ||
run: nix develop -c just | ||
run: nix develop -c just all | ||
- name: Upload artifacts | ||
uses: actions/[email protected] | ||
with: | ||
|
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 |
---|---|---|
@@ -1,5 +1,13 @@ | ||
default: all | ||
default: | ||
just --list | ||
|
||
all: | ||
all: base128 simplebase bouncycastle | ||
|
||
base128: | ||
just msbuild/Base128/ | ||
|
||
bouncycastle: | ||
just msbuild/BouncyCastle/ | ||
|
||
simplebase: | ||
just msbuild/SimpleBase/ |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,32 @@ | ||
git_repo := "https://github.com/bcgit/bc-csharp.git" | ||
git_ref := "release-2.5.0" | ||
dll_name := "BouncyCastle.Cryptography.dll" | ||
dotnet_framework := "netstandard2.0" | ||
csproj_relative_path := "crypto" / "src" / "BouncyCastle.Crypto.csproj" | ||
out_dir := invocation_directory() / "build" | ||
|
||
working_dir := `mktemp -d` | ||
repo_dir := working_dir / "repo" | ||
dotnet_artifact_dir := working_dir / "dotnet_artifacts" | ||
upm_contents_dir := working_dir / "upm_contents" | ||
csproj_path := repo_dir / csproj_relative_path | ||
|
||
default: assemble_upm | ||
|
||
# Clean build outputs | ||
clean: | ||
rm -rf {{working_dir}} | ||
|
||
clone: | ||
git clone --single-branch --branch {{git_ref}} {{git_repo}} {{repo_dir}} | ||
|
||
build: clone | ||
dotnet build {{csproj_path}} --configuration Release -o {{dotnet_artifact_dir}} --framework {{dotnet_framework}} | ||
|
||
assemble_upm: clone build && clean | ||
mkdir -p {{upm_contents_dir}} | ||
cp {{dotnet_artifact_dir / dll_name}} {{upm_contents_dir}} | ||
cp package.json {{upm_contents_dir}} | ||
cp *.meta {{upm_contents_dir}} | ||
mkdir -p {{out_dir}} | ||
npm pack --pack-destination {{out_dir}} {{upm_contents_dir}} |
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,9 @@ | ||
{ | ||
"name": "org.basisvr.bouncycastle", | ||
"version": "2.5.0", | ||
"displayName": "BouncyCastle.Cryptography", | ||
"description": "The Bouncy Castle Cryptography library", | ||
"documentationUrl": "https://github.com/bcgit/bc-csharp", | ||
"publishConfig": { "registry": "https://npm.pkg.github.com/@BasisVR" }, | ||
"repository":"https://github.com/BasisVR/UpmBuilds" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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