update versioning scheme #5
Workflow file for this run
This file contains hidden or 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
| on: | |
| push: | |
| branches: | |
| - ganeshnj/feat/datapipeline-nuget | |
| pull_request: | |
| name: .NET | |
| jobs: | |
| windows-build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| # Run build | |
| - name: Install Rustup using win.rustup.rs | |
| run: | | |
| # disable download progress bar | |
| $ProgressPreference = "SilentlyContinue" | |
| Invoke-WebRequest https://win.rustup.rs/ -OutFile rustup-init.exe | |
| .\rustup-init.exe -y --default-host=x86_64-pc-windows-msvc --default-toolchain=none | |
| del rustup-init.exe | |
| rustup target add x86_64-pc-windows-msvc | |
| rustup target add i686-pc-windows-msvc | |
| shell: powershell | |
| - name: build | |
| run: | | |
| .\windows\build-artifacts.ps1 bin | |
| - name: pack | |
| run: | | |
| $sha = "${{ github.sha }}".SubString(0, 8))" | |
| dotnet pack .\windows\libdatadog.csproj -p:LibDatadogBinariesOutputDir=..\bin -p:LibDatadogVersion="42.0.0+${sha}" -o .nuget\packages\ | |
| - name: save-artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: packages | |
| path: .nuget/* |