-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (46 loc) · 1.62 KB
/
nightly.yml
File metadata and controls
49 lines (46 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: nightly
on:
schedule:
- cron: "0 2 * * *" # Every night at 2 AM UTC (9 PM EST; 10 PM EDT)
workflow_dispatch:
jobs:
test_macos_ubuntu:
runs-on: ${{ matrix.os }}
name: nightly-${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["macos-latest", "ubuntu-latest"]
steps:
- uses: actions/checkout@v4
- name: Force TileDB to build from Dev branch
shell: bash
run: |
awk '/TILEDB_GIT_TAG/{sub("=.*","=dev")};{print}' gradle.properties > gradle.properties.new && mv gradle.properties.new gradle.properties
awk '/DOWNLOAD_TILEDB_PREBUILT/{sub("=.*","=OFF")};{print}' gradle.properties > gradle.properties.new && mv gradle.properties.new gradle.properties
- run: |
./gradlew assemble
shell: bash
name: Assemble
- run: |
./gradlew test
shell: bash
name: Test
Test_Windows:
runs-on: windows-2022
steps:
- name: checkout
uses: actions/checkout@v4
- name: Force TileDB to build from Dev branch
shell: pwsh
run: |
(Get-Content gradle.properties) | ForEach-Object { $_ -replace 'TILEDB_GIT_TAG=.*', 'TILEDB_GIT_TAG=dev' } | Set-Content gradle.properties
(Get-Content gradle.properties) | ForEach-Object { $_ -replace 'DOWNLOAD_TILEDB_PREBUILT=.*', 'DOWNLOAD_TILEDB_PREBUILT=OFF' } | Set-Content gradle.properties
- name: assemble
uses: gradle/gradle-build-action@v3.5.0
with:
arguments: assemble
- name: test
uses: gradle/gradle-build-action@v3.5.0
with:
arguments: test