Skip to content

Commit

Permalink
Fix neo version with submodule (neo-project#925)
Browse files Browse the repository at this point in the history
* Fix neo version with submodule

* Update submodule
  • Loading branch information
shargon authored and cschuchardt88 committed Mar 21, 2024
1 parent 533ab74 commit fd65963
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,21 @@ jobs:
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Set Version
- name: Set Version (dev-pack)
run: git rev-list --count HEAD | xargs printf 'CI%05d' | xargs -I{} echo 'VERSION_SUFFIX={}' >> $GITHUB_ENV
- name: Set Version (Neo)
run: git --git-dir=./neo/.git rev-list --count HEAD | xargs printf 'CI%05d' | xargs -I{} echo 'VERSION_SUFFIX_NEO={}' >> $GITHUB_ENV

- name : Pack (Neo.SmartContract.Framework)
run: |
dotnet pack ./src/Neo.SmartContract.Framework \
--configuration Debug \
--output ./out \
--version-suffix ${{ env.VERSION_SUFFIX }}
- name : Build (Neo)
run: |
dotnet build ./neo -f net7.0 --version-suffix ${{ env.VERSION_SUFFIX_NEO }}
dotnet build ./neo -f netstandard2.1 --version-suffix ${{ env.VERSION_SUFFIX_NEO }}
- name : Build (Neo.SmartContract.Testing)
run: |
dotnet build ./src/Neo.SmartContract.Testing -f net7.0
Expand Down

0 comments on commit fd65963

Please sign in to comment.