Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/2.x] Cherry pick: Upgrade to Open Enclave 0.18.1 (#4023) #4029

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .azure-pipelines-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ trigger:

jobs:
- job: build_and_publish_docs
container: ccfmsrc.azurecr.io/ccf/ci/sgx:oe-0.18.0-0
container: ccfmsrc.azurecr.io/ccf/ci/sgx:oe-0.18.1-0
pool:
vmImage: ubuntu-20.04

Expand Down
61 changes: 61 additions & 0 deletions .azure-pipelines-quictls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
trigger:
batch: false

parameters:
- name: VERSION
displayName: QUICTLS version
type: string
default: "1.1.1"
- name: REV
displayName: QUICTLS version revision
type: string
default: "o"
- name: PUSH_ARTIFACT
displayName: Publish to package feed
type: boolean
default: true

jobs:
- job: build_quictls
container: ccfmsrc.azurecr.io/ccf/ci/sgx:oe-0.18.1-0
pool: 1es-dv4-focal

strategy:
matrix:
debug:
MODE: "debug"
release:
MODE: "release"

steps:
- checkout: self
clean: true

- script: scripts/quictls/build.sh ${{ parameters.VERSION }} ${{ parameters.REV }} $(MODE) ${{ parameters.PUSH_ARTIFACT }}
displayName: "Build QUICTLS"

- ${{ if eq(parameters.PUSH_ARTIFACT, true) }}:
- script: |
# Version to MAJOR
VERSION=${{ parameters.VERSION }}
MAJOR=${VERSION//./}
# Rev to MINOR (assuming it doesn't go beyond 'z')
CHAR=$(printf '%d' "'${{ parameters.REV }}'")
BASE=$(printf '%d' "'a'")
MINOR=$(($CHAR-$BASE+1))
# MAJOR.MINOR (BUILD automatic and incrementing)
echo "##vso[task.setvariable variable=pkg-ver]$MAJOR.$MINOR.$(Build.BuildId)"

mv scripts/quictls/quictls-${{ parameters.VERSION }}${{ parameters.REV }}-$(MODE).tar.xz $(Build.ArtifactStagingDirectory)
displayName: "Prepare Artifact Staging Directory"

- task: UniversalPackages@0
displayName: "Publish QUICTLS Artifact"
inputs:
command: publish
publishDirectory: "$(Build.ArtifactStagingDirectory)"
vstsFeedPublish: "CCF/QUICTLS"
vstsFeedPackagePublish: "quictls-$(MODE)"
versionOption: custom
versionPublish: "$(pkg-ver)"
packagePublishDescription: "CCF build of QUICTLS-enabled OpenSSL"
2 changes: 1 addition & 1 deletion .azure-pipelines-v8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ parameters:

jobs:
- job: build_v8
container: ccfmsrc.azurecr.io/ccf/ci/sgx:oe-0.18.0-0
container: ccfmsrc.azurecr.io/ccf/ci/sgx:oe-0.18.1-0
pool: 1es-dv4-focal

strategy:
Expand Down
4 changes: 2 additions & 2 deletions .azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ schedules:
resources:
containers:
- container: nosgx
image: ccfmsrc.azurecr.io/ccf/ci/sgx:oe-0.18.0-0
image: ccfmsrc.azurecr.io/ccf/ci/sgx:oe-0.18.1-0
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --cap-add SYS_PTRACE -v /dev/shm:/tmp/ccache -v /lib/modules:/lib/modules:ro

- container: sgx
image: ccfmsrc.azurecr.io/ccf/ci/sgx:oe-0.18.0-0
image: ccfmsrc.azurecr.io/ccf/ci/sgx:oe-0.18.1-0
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --device /dev/sgx_enclave:/dev/sgx_enclave --device /dev/sgx_provision:/dev/sgx_provision -v /dev/sgx:/dev/sgx -v /dev/shm:/tmp/ccache -v /lib/modules:/lib/modules:ro

variables:
Expand Down
4 changes: 2 additions & 2 deletions .daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ schedules:
resources:
containers:
- container: nosgx
image: ccfmsrc.azurecr.io/ccf/ci/sgx:oe-0.18.0-0
image: ccfmsrc.azurecr.io/ccf/ci/sgx:oe-0.18.1-0
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --cap-add SYS_PTRACE -v /dev/shm:/tmp/ccache

- container: sgx
image: ccfmsrc.azurecr.io/ccf/ci/sgx:oe-0.18.0-0
image: ccfmsrc.azurecr.io/ccf/ci/sgx:oe-0.18.1-0
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --device /dev/sgx_enclave:/dev/sgx_enclave --device /dev/sgx_provision:/dev/sgx_provision -v /dev/sgx:/dev/sgx -v /dev/shm:/tmp/ccache

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
checks:
runs-on: ubuntu-latest
container: ccfmsrc.azurecr.io/ccf/ci/sgx:oe-0.18.0-0
container: ccfmsrc.azurecr.io/ccf/ci/sgx:oe-0.18.1-0

steps:
- run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
Expand Down
2 changes: 1 addition & 1 deletion .multi-thread.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pr:
resources:
containers:
- container: sgx
image: ccfmsrc.azurecr.io/ccf/ci/sgx:oe-0.18.0-0
image: ccfmsrc.azurecr.io/ccf/ci/sgx:oe-0.18.1-0
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --device /dev/sgx_enclave:/dev/sgx_enclave --device /dev/sgx_provision:/dev/sgx_provision -v /dev/sgx:/dev/sgx -v /dev/shm:/tmp/ccache

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .stress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ schedules:
resources:
containers:
- container: sgx
image: ccfmsrc.azurecr.io/ccf/ci/sgx:oe-0.18.0-0
image: ccfmsrc.azurecr.io/ccf/ci/sgx:oe-0.18.1-0
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --device /dev/sgx_enclave:/dev/sgx_enclave --device /dev/sgx_provision:/dev/sgx_provision -v /dev/sgx:/dev/sgx -v /dev/shm:/tmp/ccache

jobs:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased

### Dependencies

- Upgraded Open Enclave to 0.18.1 (#4023).

## [2.0.4]

### Added
Expand Down
2 changes: 1 addition & 1 deletion cmake/cpack_settings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ endif()

# CPack variables for Debian packages
set(CPACK_DEBIAN_PACKAGE_DEPENDS
"open-enclave (>=0.18.0), libuv1 (>= 1.34.2), libc++1-10, libc++abi1-10, openssl (>=1.1.1)"
"open-enclave (>=0.18.1), libuv1 (>= 1.34.2), libc++1-10, libc++abi1-10, openssl (>=1.1.1)"
)
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)

Expand Down