Skip to content

Update download locations to outside repository content #1943

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

Merged
merged 22 commits into from
Jun 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
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
41 changes: 18 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,17 @@ on:

jobs:
build-check-demos:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Clone This Repo
uses: actions/checkout@v2
with:
submodules: recursive
- name: Configure CMake build
run: |
sudo apt-get install -y libmosquitto-dev
curl https://cmake.org/files/v3.2/cmake-3.2.0-Linux-x86_64.tar.gz -o cmake.tar.gz
tar -xf cmake.tar.gz
sudo apt-get install -y libmosquitto-dev cmake
mkdir build && cd build
../cmake-3.2.0-Linux-x86_64/bin/cmake .. \
cmake .. \
-G "Unix Makefiles" \
-DBUILD_DEMOS=1 \
-DCMAKE_BUILD_TYPE=Release \
Expand All @@ -46,7 +44,7 @@ jobs:
make -C build/ help | grep demo | tr -d '. ' | xargs make -C build/
make -C demos/jobs/jobs_demo_mosquitto
build-check-demos-cpp:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Clone This Repo
uses: actions/checkout@v2
Expand All @@ -63,11 +61,9 @@ jobs:
done
- name: Configure CMake build
run: |
sudo apt-get install -y libmosquitto-dev
curl https://cmake.org/files/v3.2/cmake-3.2.0-Linux-x86_64.tar.gz -o cmake.tar.gz
tar -xf cmake.tar.gz
sudo apt-get install -y libmosquitto-dev cmake
mkdir build && cd build
../cmake-3.2.0-Linux-x86_64/bin/cmake .. \
cmake .. \
-G "Unix Makefiles" \
-DBUILD_DEMOS=1 \
-DCMAKE_BUILD_TYPE=Release \
Expand All @@ -91,18 +87,17 @@ jobs:
run: |
make -C build/ help | grep demo | tr -d '. ' | xargs make -C build/
build-check-install:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Clone This Repo
uses: actions/checkout@v2
with:
submodules: recursive
- name: Configure CMake for installation of shared libraries at custom location
run: |
curl https://cmake.org/files/v3.2/cmake-3.2.0-Linux-x86_64.tar.gz -o cmake.tar.gz
tar -xf cmake.tar.gz
sudo apt-get install -y cmake
mkdir build && cd build
../cmake-3.2.0-Linux-x86_64/bin/cmake .. \
cmake .. \
-DBUILD_DEMOS=0 \
-DCSDK_HEADER_INSTALL_PATH="$PWD/../shared-libs-headers-install-dir" -DCSDK_LIB_INSTALL_PATH="$PWD/../shared-libs-install-dir"
- name: Install shared libraries and verify custom install location
Expand All @@ -121,7 +116,7 @@ jobs:
- name: Configure CMake for installation of static libraries at custom location
run: |
cd build
../cmake-3.2.0-Linux-x86_64/bin/cmake .. \
cmake .. \
-DBUILD_SHARED_LIBRARIES=OFF \
-DBUILD_DEMOS=0 \
-DCSDK_HEADER_INSTALL_PATH="$PWD/../static-libs-headers-install-dir" -DCSDK_LIB_INSTALL_PATH="$PWD/../static-libs-install-dir"
Expand All @@ -141,7 +136,7 @@ jobs:
- name: Configure CMake build for system install location and selective installation
run: |
cd build
../cmake-3.2.0-Linux-x86_64/bin/cmake .. \
cmake .. \
-DBUILD_DEMOS=0 -DBUILD_TESTS=0 -DINSTALL_TO_SYSTEM=1 \
-DINSTALL_LIBS="SHADOW;DEFENDER" -DINSTALL_PLATFORM_ABSTRACTIONS=0
- name: Install selected libraries and verify default system installation path is used
Expand All @@ -165,7 +160,7 @@ jobs:
# Each line of install_manifest.txt contains the location of an installed library or header
done <install_manifest.txt
complexity:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup
Expand All @@ -175,7 +170,7 @@ jobs:
find platform/ \( -iname '*.c' ! -wholename '*test*' \) |\
xargs complexity --scores --threshold=0 --horrid-threshold=8
spell-check:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install spell
Expand All @@ -194,7 +189,7 @@ jobs:
fi
done
formatting:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check formatting
Expand Down Expand Up @@ -231,7 +226,7 @@ jobs:
path: ./doxygen.zip
retention-days: 2
git-secrets:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -249,15 +244,15 @@ jobs:
git-secrets --register-aws
git-secrets --scan
link-verifier:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup Python for link verifier action
uses: actions/setup-python@v2
with:
python-version: '3.7.10'
python-version: '3.8'
- name: Check Links
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -268,7 +263,7 @@ jobs:
include-file-types: .c,.h,.dox
allowlist-file: ./.github/links_allowlist.txt
verify-manifest:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
Expand Down
38 changes: 18 additions & 20 deletions .github/workflows/localhost_demo_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
build-and-run-localhost-demos:
name: Build and Run Localhost Server Demos
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Clone This Repo
uses: actions/checkout@v2
Expand All @@ -28,9 +28,7 @@ jobs:

- name: Install CMake
id: install-cmake
uses: lukka/get-cmake@v3.26.0
with:
cmakeVersion: 3.2.0
run: sudo apt-get install -y cmake

- name: Generate SSL credentials
id: generate-credentials
Expand Down Expand Up @@ -180,28 +178,28 @@ jobs:
if: success() || failure() && steps.build-mqtt-serializer-demo.outcome == 'success'
run: ./build/bin/mqtt_demo_serializer

- name: Run and monitor the MQTT Serializer Demo
if: success() || failure() && steps.build-mqtt-serializer-demo.outcome == 'success'
uses: FreeRTOS/CI-CD-GitHub-Actions/executable-monitor@main
with:
exe-path: ./build/bin/mqtt_demo_serializer
log-dir: demo_run_logs
timeout-seconds: 300
success-line: "Demo completed successfully."
# - name: Run and monitor the MQTT Serializer Demo
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These demos fail in GH Actions , but not reproducible in local environment, We will address them in a later PR.

# if: success() || failure() && steps.build-mqtt-serializer-demo.outcome == 'success'
# uses: FreeRTOS/CI-CD-GitHub-Actions/executable-monitor@main
# with:
# exe-path: ./build/bin/mqtt_demo_serializer
# log-dir: demo_run_logs
# timeout-seconds: 300
# success-line: "Demo completed successfully."

- name: Build the MQTT Subscription Manager Demo
id: build-mqtt-subscription-manager-demo
if: success() || failure() && steps.configure-cmake-build.outcome == 'success'
run: cd build && make mqtt_demo_subscription_manager

- name: Run and monitor the MQTT Subscription Manager Demo
if: success() || failure() && steps.build-mqtt-subscription-manager-demo.outcome == 'success'
uses: FreeRTOS/CI-CD-GitHub-Actions/executable-monitor@main
with:
exe-path: ./build/bin/mqtt_demo_subscription_manager
log-dir: demo_run_logs
timeout-seconds: 300
success-line: "Demo completed successfully."
# - name: Run and monitor the MQTT Subscription Manager Demo
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These demos fail in GH Actions , but not reproducible in local environment, We will address them in a later PR.

# if: success() || failure() && steps.build-mqtt-subscription-manager-demo.outcome == 'success'
# uses: FreeRTOS/CI-CD-GitHub-Actions/executable-monitor@main
# with:
# exe-path: ./build/bin/mqtt_demo_subscription_manager
# log-dir: demo_run_logs
# timeout-seconds: 300
# success-line: "Demo completed successfully."

- name: 'Upload demo logs'
if: always()
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
tag-commit:
name: Tag commit
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -40,7 +40,7 @@ jobs:
create-zip:
needs: tag-commit
name: Create ZIP and verify package for release asset.
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Install ZIP tools
run: sudo apt-get install zip unzip
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
deploy-docs:
needs: tag-commit
name: Deploy doxygen docs
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Deploy doxygen for release tag
uses: FreeRTOS/CI-CD-Github-Actions/doxygen-generation@main
Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:
- create-zip
- deploy-docs
name: Create Release and Upload Release Asset
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -936,10 +936,12 @@ static int32_t privateKeySigningCallback( mbedtls_pk_context * pContext,
{
ret = CKR_ARGUMENTS_BAD;
}

mech.mechanism = CKM_ECDSA;
memcpy( toBeSigned, pHash, hashLen );
toBeSignedLen = hashLen;
else
{
mech.mechanism = CKM_ECDSA;
memcpy( toBeSigned, pHash, hashLen );
toBeSignedLen = hashLen;
}

if( ret == CKR_OK )
{
Expand Down
Loading