diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 534eb0d2..d4fd32c9 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,7 +3,7 @@ "isRoot": true, "tools": { "clangsharppinvokegenerator": { - "version": "15.0.2", + "version": "16.0.0", "commands": [ "ClangSharpPInvokeGenerator" ] diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 2a3c0c88..e27cd24c 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -2,6 +2,7 @@ name: Nightly-Build env: TILEDB_NIGHTLY_BUILD: 1 + VCPKG_BINARY_SOURCES: 'clear;x-gha,readwrite' on: schedule: @@ -19,15 +20,16 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] include: - - BOOTSTRAP: ../bootstrap --enable-s3 --enable-serialization --force-build-all-deps + - BOOTSTRAP: ../bootstrap --enable-s3 --enable-serialization --force-build-all-deps --enable-vcpkg - os: ubuntu-latest platform: linux-x86_64 - os: macos-latest platform: macos-x86_64 - os: windows-latest platform: windows-x86_64 - BOOTSTRAP: ../bootstrap.ps1 -EnableS3 -EnableSerialization -EnableBuildDeps - tag: [release-2.15, dev] + BOOTSTRAP: ../bootstrap.ps1 -EnableS3 -EnableSerialization -EnableBuildDeps -EnableVcpkg + - tag: dev + tag: [release-2.17, dev] runs-on: ${{ matrix.os }} steps: - name: Checkout TileDB @@ -35,7 +37,12 @@ jobs: with: repository: TileDB-Inc/TileDB ref: ${{ matrix.tag }} - + - name: Export GitHub Actions cache variables + uses: actions/github-script@v6 + with: + script: | + core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); + core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); - name: Build TileDB run: | mkdir -p build @@ -45,7 +52,7 @@ jobs: cmake --build . --config Release --target install-tiledb cd ../ mkdir -p artifacts/${{ matrix.platform }} - mv dist/* artifacts/${{ matrix.platform }} + mv build/dist/* artifacts/${{ matrix.platform }} # We combine the binaries of the many platforms per tag by uploading them to the same artifact. - name: Upload native artifacts @@ -53,13 +60,14 @@ jobs: with: name: tiledb-native-${{ matrix.tag }} path: artifacts/ + retention-days: 1 Pack-NuGet: needs: Build-Native strategy: fail-fast: false matrix: - tag: [release-2.15, dev] + tag: [release-2.17, dev] runs-on: ubuntu-latest steps: - name: Checkout TileDB-CSharp @@ -91,6 +99,7 @@ jobs: with: name: tiledb-nuget-${{ matrix.tag }} path: scripts/nuget/packages/ + retention-days: 5 Test-NuGet: needs: Pack-NuGet @@ -98,7 +107,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - tag: [release-2.15, dev] + tag: [release-2.17, dev] runs-on: ${{ matrix.os }} steps: - name: Checkout TileDB-CSharp diff --git a/.github/workflows/tiledb-csharp.yml b/.github/workflows/tiledb-csharp.yml index a19c666e..1b8354eb 100644 --- a/.github/workflows/tiledb-csharp.yml +++ b/.github/workflows/tiledb-csharp.yml @@ -2,13 +2,35 @@ name: CI on: push: - branches: [ main ] + branches: [ main, 'release/*' ] pull_request: - branches: [ main ] + branches: [ main, 'release/*' ] workflow_dispatch: workflow_call: jobs: + Validate-Package: + runs-on: ubuntu-latest + steps: + # Checks out repository + - uses: actions/checkout@v3 + + - name: Remove existing .NET versions + shell: bash + run: | + rm -rf $DOTNET_ROOT + + - name: Set up .NET SDK from global.json + uses: actions/setup-dotnet@v3 + + - name: Display .NET versions + run: dotnet --info + + # Package validation runs as part of packing. + - name: Dotnet pack for TileDB.CSharp + run: | + dotnet pack -c Release sources/TileDB.CSharp + Run-Tests: strategy: fail-fast: false diff --git a/Directory.Packages.props b/Directory.Packages.props index e40cd2db..cb1d412d 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -2,7 +2,7 @@ true TileDB.Native - [2.15.0,2.16.0) + [2.17.0,2.18.0)