Skip to content

Commit

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

* Update submodule
  • Loading branch information
shargon authored Feb 21, 2024
1 parent 83600e2 commit 839235a
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 839235a

Please sign in to comment.