Skip to content

feat: BCH Network Upgrade 2024 #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Sep 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 62 additions & 32 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,71 @@
name: .NET

# on:
# push:
# branches: [ master ]
# pull_request:
# branches: [ master ]

on: [push, pull_request]

jobs:
build:

# runs-on: windows-2022
# runs-on: windows-latest
# runs-on: windows-2019
# runs-on: ubuntu-latest
runs-on: ubuntu-22.04


# generate-matrix:
# # needs: execute-linter
# name: Generate Job Matrix
# if: github.ref == 'refs/heads/master'
# runs-on: ubuntu-latest
# outputs:
# matrix: ${{ steps.set-matrix.outputs.matrix }}
# steps:
# - name: Generate Job Matrix
# id: set-matrix
# env:
# MATRIX: '{"config": [
# {"name": "Linux x86_64 GCC 14","compiler": "GCC","version": "14","os": "ubuntu-20.04","docker_suffix": "-ubuntu20.04", "os_kind": "linux"},
# {"name": "macOS - arm64 - apple-clang 15","compiler": "apple-clang","version": "15","os": "macos-14", "os_kind": "macos"}
# ]}'

# run: |
# echo "${MATRIX}"
# echo "matrix=${MATRIX}" >> $GITHUB_OUTPUT


generate-matrix:
name: Generate Job Matrix
# if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Generate Job Matrix
id: set-matrix
env:
MATRIX: '{"config": [
{"name": "macOS 14 (ARM) - NodeJS 20","nodejs_version": "20","os": "macos-14","os_kind": "macos","test": "0"}
]}'

run: |
echo "${MATRIX}"
echo "matrix=${MATRIX}" >> $GITHUB_OUTPUT
builds:
needs: generate-matrix
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix: ${{fromJson(needs.generate-matrix.outputs.matrix)}}
name: ${{ matrix.config.name }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Fetch history
# run: git fetch --prune --unshallow
run: git fetch --unshallow

- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
# dotnet-version: 3.1.x
# dotnet-version: 5.0.x
dotnet-version: 6.0.x
- uses: actions/setup-python@v1
# dotnet-version: 6.0.x
dotnet-version: 8.0.x
- uses: actions/setup-python@v5
with:
python-version: "3.8"
python-version: "3.12"

# - "python --version"
# - python -m pip install --upgrade pip
@@ -47,24 +80,20 @@ jobs:
conan --version
pip install conan --upgrade
conan --version
conan user
shell: bash

- name: Pre-Compile
run: |
conan config install https://github.com/k-nuth/ci-utils/raw/master/conan/config.zip
conan profile new default --detect
conan profile show default
conan profile update settings.compiler.libcxx=libstdc++11 default
conan profile show default
conan config install https://github.com/k-nuth/ci-utils/raw/master/conan/config2023.zip
conan config install https://github.com/k-nuth/ci-utils/raw/master/conan/config2023.zip
conan remote add kth https://packages.kth.cash/api
conan config set general.revisions_enabled=1
echo "-----------------------------------------------------------"
conan config get
echo "-----------------------------------------------------------"
conan profile list
conan profile detect
conan profile list
conan install c-api/0.32.0@kth/stable -o c-api:shared=True -o c-api:db=full
conan graph explain --requires=c-api/0.48.0 --update -o c-api/*:shared=True -s compiler.cppstd=20
conan install --requires=c-api/0.48.0 --update -o c-api/*:shared=True -s compiler.cppstd=20 --build=missing
shell: bash

- name: Compile
@@ -83,6 +112,7 @@ jobs:
shell: bash

- name: Push
if: ${{ matrix.config.os_kind == 'macos' }}
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
GHA_COMMIT_MSG: ${{ github.event.head_commit.message }}
138 changes: 58 additions & 80 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,101 +1,79 @@
################################################################################
# This .gitignore file was automatically created by Microsoft(R) Visual Studio.
################################################################################
.nuke/
.tmp/

/.vs/
/.vscode
/packages
build-nuke/bin/
build-nuke/obj/

/kth-c-api.dll
/tests/bch/libkth-c-api.dll
/tests/bch/kth-c-api.dll
/console/kth-c-api.dll
/console/libkth-c-api.so

/console/blockchain
/console/hosts.cache
/console/error.log
/console/debug.log
/console/cs-api-log.txt
/console/archive/
/console/bn
/console/deploy_manifest.txt

/tools/*
!tools/packages.config

/docs/tutorials/*.cfg
/docs/tutorials/*.cmake
/docs/tutorials/*.so
/docs/tutorials/*.txt
/docs/tutorials/archive/

/tests/bch/*.so
console/conanbuild.sh
console/conanbuildenv-release-x86_64.sh
console/conanrun.sh
console/conanrunenv-release-x86_64.sh
console/deactivate_conanbuild.sh
console/deactivate_conanrun.sh
console/direct_deploy/
console/conaninfo.txt
console/conanbuildinfo.txt
console/conan_imports_manifest.txt
console/conanbuildinfo.cmake
console/conanfile.txt
console/debug.log
console/kth-c-api.dll
console/libkth-c-api.so
console/blockchain
console/hosts.cache
console/error.log
console/debug.log
console/cs-api-log.txt
console/archive/
console/bn
console/deploy_manifest.txt
console/obj
console/bin
console/libkth-c-api.dylib
console/graph_info.json
console/blockchain-170/

/tests/common/*.txt
/tests/common/*.so
/tests/common/*.cmake


HelloKnuth/
HelloKnuth2/
HelloKnuth3/

console/obj
kth-bch/obj/
tests/bch/obj/

console/bin/
kth-bch/bin/
tests/bch/bin/

/conanbuildinfo.cmake
/conanbuildinfo.txt
/conaninfo.txt
/conan_imports_manifest.txt
kth-bch/bin/
kth-bch/obj/

/tests/bch/conaninfo.txt
/tests/bch/conanfile.txt
/tests/bch/conanbuildinfo.txt
/tests/bch/conanbuildinfo.cmake
/tests/bch/conan_imports_manifest.txt

/console/conaninfo.txt
/console/conanbuildinfo.txt
/console/conan_imports_manifest.txt
/console/conanbuildinfo.cmake
/console/conanfile.txt

tests/bch/libkth-c-api.dll
tests/bch/kth-c-api.dll
tests/bch/*.so
tests/bch/obj/
tests/bch/bin/
tests/bch/conaninfo.txt
tests/bch/conanfile.txt
tests/bch/conanbuildinfo.txt
tests/bch/conanbuildinfo.cmake
tests/bch/conan_imports_manifest.txt
tests/bch/libkth-c-api.dylib
console/libkth-c-api.dylib
console/graph_info.json
tests/bch/graph_info.json
tests/bch/direct_deploy/
tests/bch/conanbuild.sh
tests/bch/conanrunenv-release-x86_64.sh
tests/bch/conanrun.sh
tests/bch/conanbuildenv-release-x86_64.sh
tests/bch/deactivate_conanbuild.sh
tests/bch/deactivate_conanrun.sh
tests/bch/TestResults/

.tmp/
build/bin/
build/obj/

console/conan.lock
console/hosts*
console/database/
console/log
buildX/

*.log
hosts.cache
tests/common/*.txt
tests/common/*.so
tests/common/*.cmake

blockchain/
build-nuke/bin/
build-nuke/obj/

tests/bch/TestResults/
tests/bch/conan.lock
tests/bch/mono_crash.21acb2a948.0.json
output/
tests/bch/libkth-c-api*
console/.vscode/
console/.vs/
HelloKnuth/
HelloKnuth2/
HelloKnuth3/
tests/tempo
.nuke/
console/blockchain-170/internal_db/data.mdb
console/blockchain-170/internal_db/lock.mdb
5 changes: 3 additions & 2 deletions .nuke/build.schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Build Schema",
"$ref": "#/definitions/build",
"title": "Build Schema",
"definitions": {
"build": {
"type": "object",
@@ -29,6 +29,7 @@
"AppVeyor",
"AzurePipelines",
"Bamboo",
"Bitbucket",
"Bitrise",
"GitHubActions",
"GitLab",
@@ -120,4 +121,4 @@
}
}
}
}
}
Loading