Skip to content

Commit 604f8f4

Browse files
authored
CI on GitHub Actions improvements (#1160)
* Fix newly broken Mac CI -- GHA's default homebrew now has llvm 10, which requires C++14. * Schedule a nightly cron job for CI. * Do not launch full builds and tests for pushes that only change documentation (md, rst, and tex files).
1 parent 95bf159 commit 604f8f4

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/workflow.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,22 @@
33
# https://github.com/imageworks/OpenShadingLanguage
44

55
name: CI
6-
on: [push, pull_request]
6+
7+
on:
8+
push:
9+
# Skip jobs when only documentation files are changed
10+
paths-ignore:
11+
- '**.md'
12+
- '**.rst'
13+
- '**.tex'
14+
pull_request:
15+
paths-ignore:
16+
- '**.md'
17+
- '**.rst'
18+
- '**.tex'
19+
schedule:
20+
# Full nightly build
21+
- cron: "0 4 * * *"
722

823

924
jobs:
@@ -184,6 +199,7 @@ jobs:
184199
- name: all
185200
env:
186201
CXX: clang++
202+
USE_CPP: 14
187203
PYTHON_VERSION: 3.7
188204
LLVM_BC_GENERATOR: /usr/bin/clang++
189205
# ^^ Force bitcode compiles to use the system clang compiler by

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ matrix:
102102
- name: "MacOS (latest Apple clang, llvm 7, OIIO master, latest homebrew libs"
103103
os: osx
104104
compiler: clang
105-
env: PYTHON_VERSION=3.7
105+
env: PYTHON_VERSION=3.7 USE_CPP=14
106106
- name: "VFX Platform 2017 (gcc48, c++11), llvm 7, OIIO release, OpenEXR 2.3, sse4.2"
107107
os: linux
108108
dist: trusty

0 commit comments

Comments
 (0)