Skip to content

Commit c3667a0

Browse files
author
Ron
committed
Feature/release-major-bump
# 🚀 Hey, I have created a Pull Request ## Description of changes Release-As: 6.0.0 ## ✔️ Checklist <!-- We follow conventional commit-style PR titles and kebab-case branch names --> - [ ] I have followed the [contribution guidelines](https://github.com/philips-software/amp-devcontainer/blob/main/.github/CONTRIBUTING.md) for this repository - [ ] I have added tests for new behavior, and have not broken any existing tests - [ ] I have added or updated relevant documentation - [ ] I have verified that all added components are accounted for in the SBOM
1 parent 7d43c50 commit c3667a0

6 files changed

Lines changed: 169 additions & 0 deletions

File tree

cpp.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"_type": "https://in-toto.io/Statement/v1",
3+
"subject": [
4+
{
5+
"name": "ghcr.io/philips-software/amp-devcontainer-cpp",
6+
"digest": {
7+
"sha256": "74267eb664178abccd6336e8e0eda1f280d0fc25513ec31497f19780ae2f5150"
8+
}
9+
}
10+
],
11+
"predicateType": "https://slsa.dev/provenance/v1",
12+
"predicate": {
13+
"buildDefinition": {
14+
"buildType": "https://actions.github.io/buildtypes/workflow/v1",
15+
"externalParameters": {
16+
"workflow": {
17+
"ref": "refs/tags/v5.7.0",
18+
"repository": "https://github.com/philips-software/amp-devcontainer",
19+
"path": ".github/workflows/build-push.yml"
20+
}
21+
},
22+
"internalParameters": {
23+
"github": {
24+
"event_name": "push",
25+
"repository_id": "593996679",
26+
"repository_owner_id": "39734771",
27+
"runner_environment": "github-hosted"
28+
}
29+
},
30+
"resolvedDependencies": [
31+
{
32+
"uri": "git+https://github.com/philips-software/amp-devcontainer@refs/tags/v5.7.0",
33+
"digest": {
34+
"gitCommit": "baa5f517cf61e664a75ba302f258430269b1ed4b"
35+
}
36+
}
37+
]
38+
},
39+
"runDetails": {
40+
"builder": {
41+
"id": "https://github.com/philips-software/amp-devcontainer/.github/workflows/build-push.yml@refs/tags/v5.7.0"
42+
},
43+
"metadata": {
44+
"invocationId": "https://github.com/philips-software/amp-devcontainer/actions/runs/14104814548/attempts/1"
45+
}
46+
}
47+
}
48+
}

package-published.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Package Published
3+
4+
on:
5+
registry_package:
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
attach-provenance-to-release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- run: |
15+
set -Eeuo pipefail
16+
echo "${{ toJson(github.event.registry_package) }}" | jq .
17+
# gh attestation verify --repo philips-software/amp-devcontainer oci://ghcr.io/philips-software/amp-devcontainer-cpp --format json --jq '.[] | .attestation.bundle.dsseEnvelope | select(.payloadType == "application/vnd.in-toto+json").payload' | base64 -d
18+
env:
19+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

rust.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"_type": "https://in-toto.io/Statement/v1",
3+
"subject": [
4+
{
5+
"name": "ghcr.io/philips-software/amp-devcontainer-rust",
6+
"digest": {
7+
"sha256": "73248de55e421edf977d4fb7ead82f6855e5395c283405c2beea076bdc0ac204"
8+
}
9+
}
10+
],
11+
"predicateType": "https://slsa.dev/provenance/v1",
12+
"predicate": {
13+
"buildDefinition": {
14+
"buildType": "https://actions.github.io/buildtypes/workflow/v1",
15+
"externalParameters": {
16+
"workflow": {
17+
"ref": "refs/tags/v5.7.0",
18+
"repository": "https://github.com/philips-software/amp-devcontainer",
19+
"path": ".github/workflows/build-push.yml"
20+
}
21+
},
22+
"internalParameters": {
23+
"github": {
24+
"event_name": "push",
25+
"repository_id": "593996679",
26+
"repository_owner_id": "39734771",
27+
"runner_environment": "github-hosted"
28+
}
29+
},
30+
"resolvedDependencies": [
31+
{
32+
"uri": "git+https://github.com/philips-software/amp-devcontainer@refs/tags/v5.7.0",
33+
"digest": {
34+
"gitCommit": "baa5f517cf61e664a75ba302f258430269b1ed4b"
35+
}
36+
}
37+
]
38+
},
39+
"runDetails": {
40+
"builder": {
41+
"id": "https://github.com/philips-software/amp-devcontainer/.github/workflows/build-push.yml@refs/tags/v5.7.0"
42+
},
43+
"metadata": {
44+
"invocationId": "https://github.com/philips-software/amp-devcontainer/actions/runs/14104814548/attempts/1"
45+
}
46+
}
47+
}
48+
}

smhasher3

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 34093a3a849cae8ae1293975b004a740d2372fd7

test/cpp/performance-tests.bats

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/env bats
2+
3+
bats_require_minimum_version 1.5.0
4+
5+
setup() {
6+
load '/usr/local/bats-support/load'
7+
load '/usr/local/bats-assert/load'
8+
9+
pushd workspace
10+
}
11+
12+
teardown() {
13+
rm -rf build smhasher3
14+
15+
popd
16+
}
17+
18+
time_execution() {
19+
local real_time=$({ time $@; } 2>&1 | grep -oP 'real\s+\K[0-9m.]+s')
20+
local minutes=$(echo $real_time | grep -oP '^\d+(?=m)')
21+
local seconds=$(echo $real_time | grep -oP '\d+\.\d+(?=s)')
22+
local total_time_in_seconds=$(awk "BEGIN {print int((${minutes:-0} * 60) + $seconds)}")
23+
24+
echo $total_time_in_seconds
25+
}
26+
27+
@test "compiler performance should not regress" {
28+
git clone https://github.com/fwojcik/smhasher3
29+
cmake -B build -S smhasher3
30+
build_time=$(time_execution cmake --build build)
31+
32+
assert [ $build_time -lt 30 ]
33+
}

test/cpp/regression-tests.bats

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bats
2+
3+
bats_require_minimum_version 1.5.0
4+
5+
setup() {
6+
load '/usr/local/bats-support/load'
7+
load '/usr/local/bats-assert/load'
8+
9+
pushd workspace
10+
}
11+
12+
teardown() {
13+
rm -rf build
14+
15+
popd
16+
}
17+
18+
@test "name mangling for lambdas in local classes is broken in clang [https://github.com/llvm/llvm-project/issues/88906]" {
19+
cmake --preset clang
20+
}

0 commit comments

Comments
 (0)