Skip to content

Commit e692ab6

Browse files
Fix nightly builds. (#388)
* Create a nightly failure issue only when the run was scheduled. * Fix nightly builds. We build with Ninja, all cores enabled and the superbuild disabled.
1 parent da78e31 commit e692ab6

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.github/workflows/nightly.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,12 @@ jobs:
2020
matrix:
2121
os: [ubuntu-latest, macos-latest, windows-latest]
2222
include:
23-
- BOOTSTRAP: ../bootstrap --enable-s3 --enable-serialization --disable-avx2 --enable-vcpkg
2423
- os: ubuntu-latest
2524
platform: linux-x86_64
2625
- os: macos-latest
2726
platform: macos-x86_64
2827
- os: windows-latest
2928
platform: windows-x86_64
30-
BOOTSTRAP: ../bootstrap.ps1 -EnableS3 -EnableSerialization -EnableVcpkg
3129
- tag: dev
3230
tag: [release-2.20, dev]
3331
runs-on: ${{ matrix.os }}
@@ -37,6 +35,16 @@ jobs:
3735
with:
3836
repository: TileDB-Inc/TileDB
3937
ref: ${{ matrix.tag }}
38+
# This must happen after checking out the repository, because Ninja gets installed
39+
# in the repository's directory that gets removed before the checkout/
40+
- name: Install Ninja
41+
uses: seanmiddleditch/gha-setup-ninja@v4
42+
- name: Setup MSVC toolset (VS 2022)
43+
uses: TheMrMilchmann/setup-msvc-dev@v3
44+
if: matrix.os == 'windows-latest'
45+
with:
46+
arch: x64
47+
toolset: 14.39
4048
- name: Export GitHub Actions cache variables
4149
uses: actions/github-script@v7
4250
with:
@@ -46,13 +54,10 @@ jobs:
4654
- name: Build TileDB
4755
run: |
4856
mkdir -p build
49-
cd build
50-
${{ matrix.BOOTSTRAP }}
51-
cmake --build . --config Release
52-
cmake --build . --config Release --target install-tiledb
53-
cd ../
5457
mkdir -p artifacts/${{ matrix.platform }}
55-
mv build/dist/* artifacts/${{ matrix.platform }}
58+
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DTILEDB_SERIALIZATION=ON -DTILEDB_S3=ON -DTILEDB_VCPKG=ON -DCOMPILER_SUPPORTS_AVX2=OFF -DTILEDB_CMAKE_IDE=ON
59+
cmake --build build -j --target tiledb
60+
cmake --install build --prefix artifacts/${{ matrix.platform }}
5661
5762
# We combine the binaries of the many platforms per tag by uploading them to the same artifact.
5863
- name: Upload native artifacts
@@ -147,7 +152,7 @@ jobs:
147152

148153
Create-Issue:
149154
needs: Test-NuGet
150-
if: failure()
155+
if: failure() && github.event_name == 'schedule'
151156
runs-on: ubuntu-latest
152157
steps:
153158
- name: Checkout TileDB-CSharp

0 commit comments

Comments
 (0)