Skip to content

Commit

Permalink
Commit oneTBB source code 8152ba4
Browse files Browse the repository at this point in the history
  • Loading branch information
tbbdev committed Sep 16, 2024
1 parent 1c4c93f commit c89df93
Show file tree
Hide file tree
Showing 119 changed files with 5,420 additions and 888 deletions.
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.1.1
7.2.1
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/1_question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: Ask a question
about: Use this template for any questions
title: ''
labels: 'question'
assignees: ''
---
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/2_bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Report a bug or a performance issue
about: Use this template to report unexpected behavior
title: ''
labels: 'bug'
assignees: ''
---

# Summary
Provide a short summary of the issue.
See the sections below
for factors important for the reproduction of an issue.

# Version
Report oneTBB version used to reproduce the problem.

# Environment
Provide any environmental details that you consider significant for reproducing the issue.
The following information is important:
* Hardware
* OS name and version
* Compiler version

# Observed Behavior
Document behavior you observe.

# Expected Behavior
Document behavior you expect.

# Steps To Reproduce
Check that the issue is reproducible with the latest revision
of the master branch. Include all the steps to reproduce the issue.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/3_feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Request a feature
about: Use this template to request new functionality or change the behavior of the library
title: ''
labels: 'new feature'
assignees: ''
---

# Summary
Include a short summary of the request.

See the sections below
for factors important for a feature request.

# Problem Statement
Describe the problem you want to solve with a reasonable level of detail.

# Preferred Solution
Provide your ideas regarding problem solutions.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/4_documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Request a documentation change
about: Use this template to report documentation issue or request documentation changes
title: ''
labels: 'documentation'
assignees: ''
---

# Summary
Include a short summary of the issue or request.
See the sections below
for factors important for a documentation
issue.

# URLs
Include pointers to documents that are impacted.

# Additional Details
Provide a detailed description of the expected changes in documentation
and suggestions you have.
2 changes: 0 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ _Add a comprehensive description of proposed changes_

Fixes # - _issue number(s) if exists_

- [ ] - git commit message contains an appropriate signed-off-by string _(see [CONTRIBUTING.md](https://github.com/oneapi-src/oneTBB/blob/master/CONTRIBUTING.md#pull-requests) for details)_

### Type of change

_Choose one or multiple, leave empty if none of the other choices apply_
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
runs-on: [ubuntu-20.04]
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Run scan
run: |
sudo apt update && sudo apt install -y codespell
Expand All @@ -47,7 +47,7 @@ jobs:
runs-on: [ubuntu-20.04]
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Run scan
run: |
command -v clang-format-10
Expand All @@ -62,7 +62,7 @@ jobs:
runs-on: [ubuntu-22.04]
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install prerequisites
run: |
pip3 install -U Jinja2
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
needs: [documentation]
steps:
- name: Checkout gh-pages
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: gh-pages
path: gh-pages
Expand All @@ -117,7 +117,7 @@ jobs:
if: ${{ github.ref != 'refs/heads/master' }}
runs-on: [ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run check
Expand All @@ -137,7 +137,7 @@ jobs:
runs-on: [ubuntu-latest]
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Run testing
run: |
mkdir build && cd build
Expand Down Expand Up @@ -179,7 +179,7 @@ jobs:
preview: 'ON'
cmake_static: -DBUILD_SHARED_LIBS=OFF
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Run testing
shell: bash
run: |
Expand Down Expand Up @@ -212,7 +212,7 @@ jobs:
preview: 'ON'
cmake_static: -DBUILD_SHARED_LIBS=OFF
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Run testing
shell: bash
run: |
Expand Down Expand Up @@ -257,7 +257,7 @@ jobs:
preview: 'OFF'
job_name: windows_cl2022_cxx17_relwithdebinfo_preview=OFF
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Run testing
run: |
mkdir build
Expand Down Expand Up @@ -295,7 +295,7 @@ jobs:
build_type: debug
preview: 'ON'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Run testing
shell: bash
run: |
Expand All @@ -321,7 +321,7 @@ jobs:
build_type: relwithdebinfo
preview: 'ON'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Run testing
shell: bash
run: |
Expand Down Expand Up @@ -357,7 +357,7 @@ jobs:
preview: 'OFF'
job_name: examples_windows_cl2022_cxx17_relwithdebinfo_preview=OFF
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Run testing
run: |
mkdir build
Expand Down
86 changes: 86 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Copyright (c) 2024 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '0 0 * * 1'

permissions:
contents: read

jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
# timeout-minutes:
permissions:
# required for all workflows
security-events: write
# required to fetch internal or private CodeQL packs
packages: read
# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
language: ["cpp", "python"]

steps:
- name: Harden Runner
uses: step-security/[email protected]
with:
egress-policy: audit

- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/[email protected]

# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# Command-line programs to run using the OS shell.
# See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
#- if: matrix.build-mode == 'manual'
# shell: bash
# run: |
# echo 'If you are using a "manual" build mode for one or more of the' \
# 'languages you are analyzing, replace this with the commands to build' \
# 'your code, for example:'
# echo ' make bootstrap'
# echo ' make release'
# exit 1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
83 changes: 83 additions & 0 deletions .github/workflows/ossf-scorecard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Copyright (c) 2024 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: OSSF Scorecard
on:
# For Branch-Protection check. Only the default branch is supported. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
branch_protection_rule:
# To guarantee Maintained check is occasionally updated. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
schedule:
- cron: '00 02 * * *'
push:
branches: [ "master" ]

# Declare default permissions as read only.
permissions: read-all

jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
# Needed to publish results and get a badge (see publish_results below).
id-token: write
# Uncomment the permissions below if installing in a private repository.
# contents: read
# actions: read

steps:
- name: "Checkout code"
uses: actions/[email protected]
with:
persist-credentials: false

- name: "Run analysis"
uses: ossf/[email protected]
with:
results_file: results.sarif
results_format: sarif
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
# - you want to enable the Branch-Protection check on a *public* repository, or
# - you are installing Scorecard on a *private* repository
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional.
# repo_token: ${{ secrets.SCORECARD_TOKEN }}

# Public repositories:
# - Publish results to OpenSSF REST API for easy access by consumers
# - Allows the repository to include the Scorecard badge.
# - See https://github.com/ossf/scorecard-action#publishing-results.
# For private repositories:
# - `publish_results` will always be set to `false`, regardless
# of the value entered here.
publish_results: true

# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
#- name: "Upload artifact"
# uses: actions/upload-artifact@97a0fba1372883ab732affbe8f94b823f91727db # v3.pre.node20
# with:
# name: SARIF file
# path: results.sarif
# retention-days: 5

# Upload the results to GitHub's code scanning dashboard (optional).
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
#- name: "Upload to code-scanning"
# uses: github/codeql-action/upload-sarif@1b1aada464948af03b950897e5eb522f92603cc2 # v3.24.9
# with:
# sarif_file: results.sarif
Loading

0 comments on commit c89df93

Please sign in to comment.