forked from google/yggdrasil-decision-forests
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (46 loc) · 1.63 KB
/
build_test.yml
File metadata and controls
51 lines (46 loc) · 1.63 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
50
51
name: Build and Test
permissions:
contents: read
on:
workflow_dispatch:
inputs:
refresh_cache:
description: 'Force refresh the cache for all child workflows'
type: boolean
default: false
push:
branches:
- main
schedule:
- cron: '0 3 * * *'
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
cc-build-test-matrix:
name: "C++ Build & Test (Compiler: ${{ matrix.compiler_config }})"
uses: ./.github/workflows/cc_build_test.yml
with:
runner: linux-x86-n2-32
compiler_config: ${{ matrix.compiler_config }}
refresh_cache: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.refresh_cache == 'true') }}
pull_request_base_sha: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || '' }}
strategy:
fail-fast: false
matrix:
compiler_config: ["gcc", "clang"]
python-build-test-matrix:
name: "Python Build & Test (Python ${{ matrix.python_version }})"
uses: ./.github/workflows/python_build_test.yml
with:
runner: linux-x86-n2-32
python_version: ${{ matrix.python_version }}
refresh_cache: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.refresh_cache == 'true') }}
pull_request_base_sha: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || '' }}
strategy:
fail-fast: false
matrix:
python_version: ['3.12'] # Currently unused