Skip to content

Commit a19010b

Browse files
authored
Merge branch 'AcademySoftwareFoundation:main' into HEIF
2 parents 056929b + ad4d892 commit a19010b

244 files changed

Lines changed: 17040 additions & 5583 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-steps.yml

Lines changed: 40 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ on:
5050
type: string
5151
abi_check:
5252
type: string
53+
benchmark:
54+
type: string
5355
build_docs:
5456
type: string
5557
clang_format:
@@ -104,27 +106,23 @@ jobs:
104106
steps:
105107
- name: Checkout repo
106108
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
107-
with:
108-
fetch-depth: '0'
109-
- name: Prepare ccache timestamp
110-
id: ccache_cache_keys
111-
shell: bash
112-
run: echo "date=`date -u +'%Y-%m-%dT%H:%M:%SZ'`" >> $GITHUB_OUTPUT
113-
- name: ccache
114-
id: ccache
115-
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
116-
with:
117-
path: ./ccache
118-
key: ${{github.job}}-${{inputs.nametag}}-${{steps.ccache_cache_keys.outputs.date}}
119-
restore-keys: ${{github.job}}-
120-
- name: Setup Nuget.exe (Windows only)
121-
if: runner.os == 'Windows'
122-
uses: nuget/setup-nuget@a21f25cd3998bf370fde17e3f1b4c12c175172f9 # v2.0.0
123109
- name: Build setup
124110
shell: bash
125111
run: |
126112
${{inputs.setenvs}}
127113
src/build-scripts/ci-startup.bash
114+
- name: Prepare ccache timestamp
115+
id: ccache_cache_keys
116+
shell: bash
117+
run: echo "date=`date -u +'%Y-%m-%dT%H:%M:%SZ'`" >> $GITHUB_OUTPUT
118+
- name: ccache-restore
119+
id: ccache-restore
120+
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
121+
with:
122+
path: ${{ env.CCACHE_DIR }}
123+
# path: ./ccache
124+
key: ${{inputs.nametag}}-${{steps.ccache_cache_keys.outputs.date}}
125+
restore-keys: ${{inputs.nametag}}
128126
- name: Dependencies
129127
shell: bash
130128
run: |
@@ -143,10 +141,34 @@ jobs:
143141
if: inputs.skip_build != '1'
144142
shell: bash
145143
run: src/build-scripts/ci-build.bash
144+
- name: Check out ABI standard
145+
if: inputs.abi_check != ''
146+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
147+
with:
148+
ref: ${{inputs.abi_check}}
149+
path: abi_standard
150+
- name: Build ABI standard
151+
if: inputs.abi_check != ''
152+
shell: bash
153+
run: |
154+
mkdir -p abi_standard/build
155+
pushd abi_standard
156+
src/build-scripts/ci-build.bash
157+
popd
158+
- name: ccache-save
159+
id: ccache-save
160+
uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
161+
with:
162+
path: ${{ env.CCACHE_DIR }}
163+
key: ${{inputs.nametag}}-${{steps.ccache_cache_keys.outputs.date}}
146164
- name: Testsuite
147165
if: inputs.skip_tests != '1'
148166
shell: bash
149167
run: src/build-scripts/ci-test.bash
168+
- name: Benchmarks
169+
if: inputs.benchmark == '1'
170+
shell: bash
171+
run: src/build-scripts/ci-benchmark.bash
150172
- name: clang-format
151173
if: inputs.clang_format == '1'
152174
shell: bash
@@ -167,20 +189,6 @@ jobs:
167189
# sonar-scanner --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}"
168190
time sonar-scanner --define sonar.host.url="${{ env.SONAR_SERVER_URL }}" --define sonar.cfamily.build-wrapper-output="$BUILD_WRAPPER_OUT_DIR" --define sonar.cfamily.gcov.reportsPath="_coverage" --define sonar.cfamily.threads="$PARALLEL"
169191
# Consult https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/sonarscanner-cli/ for more information and options
170-
- name: Check out ABI standard
171-
if: inputs.abi_check != ''
172-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
173-
with:
174-
ref: ${{inputs.abi_check}}
175-
path: abi_standard
176-
- name: Build ABI standard
177-
if: inputs.abi_check != ''
178-
shell: bash
179-
run: |
180-
mkdir -p abi_standard/build
181-
pushd abi_standard
182-
src/build-scripts/ci-build.bash
183-
popd
184192
- name: Check ABI
185193
if: inputs.abi_check != ''
186194
shell: bash
@@ -195,13 +203,14 @@ jobs:
195203
time make sphinx
196204
- name: Upload testsuite debugging artifacts
197205
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
198-
if: ${{ failure() || inputs.build_docs == '1'}}
206+
if: ${{ failure() || inputs.build_docs == '1' || inputs.benchmark == '1' }}
199207
with:
200208
name: oiio-${{github.job}}-${{inputs.nametag}}
201209
path: |
202210
build/cmake-save
203211
build/compat_reports
204212
build/sphinx
213+
build/benchmarks
205214
build/testsuite/*/*.*
206215
!build/testsuite/oiio-images
207216
!build/testsuite/openexr-images

0 commit comments

Comments
 (0)