Skip to content

Commit

Permalink
(#92) CI: fix syntax for dotnet pack invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed May 19, 2024
1 parent dc4fee0 commit b856422
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -350,16 +350,16 @@ jobs:
output: release-notes.md
- name: 'Pack NuGet package: linux.x86-64'
shell: pwsh
run: dotnet pack tdlib.native.linux-x64 -Version ${ steps.version.outputs.version } --output build
run: dotnet pack tdlib.native.linux-x64.proj -p:Version=${{ steps.version.outputs.version }} --output build
- name: 'Pack NuGet package: macos.aarch64'
shell: pwsh
run: dotnet pack tdlib.native.osx-arm64 -Version ${ steps.version.outputs.version } --output build
run: dotnet pack tdlib.native.osx-arm64.proj -p:Version=${{ steps.version.outputs.version }} --output build
- name: 'Pack NuGet package: macos.x86-64'
shell: pwsh
run: dotnet pack tdlib.native.osx-x64 -Version ${ steps.version.outputs.version } --output build
run: dotnet pack tdlib.native.osx-x64.proj -p:Version=${{ steps.version.outputs.version }} --output build
- name: 'Pack NuGet package: windows.x86-64'
shell: pwsh
run: dotnet pack tdlib.native.win-x64 -Version ${ steps.version.outputs.version } --output build
run: dotnet pack tdlib.native.win-x64.proj -p:Version=${{ steps.version.outputs.version }} --output build
- name: Install dependencies
shell: pwsh
run: ./linux/install.ps1 -ForPack
Expand Down
5 changes: 4 additions & 1 deletion github-actions.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,10 @@ let workflows = [
let packPackageFor platform architecture =
pwsh
$"Pack NuGet package: {platform}.{architecture}"
$"dotnet pack tdlib.native.{platformToDotNet platform}-{archToDotNet architecture} -Version ${{ steps.version.outputs.version }} --output build"
(
$"dotnet pack tdlib.native.{platformToDotNet platform}-{archToDotNet architecture}.proj" +
" -p:Version=${{ steps.version.outputs.version }} --output build"
)

packPackageFor Platform.Linux Arch.X86_64
packPackageFor Platform.MacOS Arch.AArch64
Expand Down

0 comments on commit b856422

Please sign in to comment.