Skip to content

Commit

Permalink
Updates for upcoming release
Browse files Browse the repository at this point in the history
  • Loading branch information
JonatanAntoni committed May 7, 2024
1 parent 0df6899 commit f46041c
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 91 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/ubuntu-22.04/vcpkg-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"registries": [
{
"kind": "artifact",
"location": "https://artifacts.tools.arm.com/vcpkg-ce-registry/registry.zip",
"location": "https://artifacts.tools.arm.com/vcpkg-registry",
"name": "arm"
}
],
Expand Down
47 changes: 8 additions & 39 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,63 +33,32 @@ jobs:
run: |
pip install -r ./CMSIS/Core/Test/requirements.txt
- name: Cache vcpkg
uses: actions/cache@v4
with:
key: vcpkg-${{ runner.os }}-${{ runner.arch }}-${{ github.run_id }}-${{ matrix.compiler }}
restore-keys: |
vcpkg-${{ runner.os }}-${{ runner.arch }}-
path: /home/runner/.vcpkg

- name: Install LLVM dependencies and tools
working-directory: /home/runner
run: |
sudo apt-get update
sudo apt-get install libtinfo5 llvm-15-tools
sudo ln -s /usr/bin/FileCheck-15 /usr/bin/FileCheck
- name: Prepare vcpkg env
working-directory: ./CMSIS/Core/Test
run: |
. <(curl https://aka.ms/vcpkg-init.sh -L)
vcpkg x-update-registry --all
vcpkg activate
- name: Activate vcpkg environment
uses: ARM-software/cmsis-actions/vcpkg@v1
with:
config: ./CMSIS/Core/Test/vcpkg-configuration.json

- name: Activate Arm tool license
working-directory: ./CMSIS/Core/Test
run: |
. /home/runner/.vcpkg/vcpkg-init
vcpkg activate
if [[ -n "${{ env.ARM_UBL_ACTIVATION_CODE }}" ]]; then
armlm activate --code ${{ env.ARM_UBL_ACTIVATION_CODE }}
else
armlm activate --server https://mdk-preview.keil.arm.com --product KEMDK-COM0
fi
uses: ARM-software/cmsis-actions/armlm@v1
with:
code: "${{ env.ARM_UBL_ACTIVATION_CODE }}"

- uses: ammaraskar/gcc-problem-matcher@master

- name: Run LIT
working-directory: ./CMSIS/Core/Test
run: |
. /home/runner/.vcpkg/vcpkg-init
vcpkg activate
./build.py lit
- name: Deactivate Arm tool license
if: always()
working-directory: ./CMSIS/Core/Test
run: |
. /home/runner/.vcpkg/vcpkg-init
vcpkg activate
if [[ -n "${{ env.ARM_UBL_ACTIVATION_CODE }}" ]]; then
armlm deactivate --code ${{ env.ARM_UBL_ACTIVATION_CODE }}
else
armlm deactivate --product KEMDK-COM0
fi
- name: Publish Test Results
if: ${{ !cancelled() && env.ARM_UBL_ACTIVATION_CODE }}
if: ${{ !cancelled() }}
uses: EnricoMi/publish-unit-test-result-action@v2
with:
report_individual_runs: true
Expand Down
57 changes: 11 additions & 46 deletions .github/workflows/corevalidation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,39 +56,23 @@ jobs:
run: |
pip install -r ./CMSIS/CoreValidation/Project/requirements.txt
- name: Cache vcpkg
uses: actions/cache@v4
with:
key: vcpkg-${{ runner.os }}-${{ runner.arch }}-${{ github.run_id }}-${{ matrix.compiler }}
restore-keys: |
vcpkg-${{ runner.os }}-${{ runner.arch }}-
path: /home/runner/.vcpkg

- name: Install LLVM/Clang dependencies
if: matrix.compiler == 'Clang'
working-directory: /home/runner
run: |
sudo apt-get update
sudo apt-get install libtinfo5
- name: Prepare vcpkg env
working-directory: ./CMSIS/CoreValidation/Project
run: |
. <(curl https://aka.ms/vcpkg-init.sh -L)
vcpkg x-update-registry --all
vcpkg activate
- name: Activate vcpkg environment
uses: ARM-software/cmsis-actions/vcpkg@v1
with:
config: ./CMSIS/CoreValidation/Project/vcpkg-configuration.json

- name: Activate Arm tool license
working-directory: ./CMSIS/CoreValidation/Project
run: |
. /home/runner/.vcpkg/vcpkg-init
vcpkg activate
if [[ -n "${{ env.ARM_UBL_ACTIVATION_CODE }}" ]]; then
armlm activate --code ${{ env.ARM_UBL_ACTIVATION_CODE }}
else
armlm activate --server https://mdk-preview.keil.arm.com --product KEMDK-COM0
fi
uses: ARM-software/cmsis-actions/armlm@v1
with:
code: "${{ env.ARM_UBL_ACTIVATION_CODE }}"

- name: Initialize CodeQL
if: matrix.compiler == 'GCC'
uses: github/codeql-action/init@v3
Expand All @@ -102,9 +86,6 @@ jobs:
- name: Build
working-directory: ./CMSIS/CoreValidation/Project
run: |
. /home/runner/.vcpkg/vcpkg-init
vcpkg activate
echo "Register local Cortex_DFP pack"
cpackget add /home/runner/Cortex_DFP/ARM.Cortex_DFP.pdsc
Expand All @@ -116,29 +97,13 @@ jobs:
uses: github/codeql-action/analyze@v3

- name: Execute
if: ${{ env.ARM_UBL_ACTIVATION_CODE }}
working-directory: ./CMSIS/CoreValidation/Project
run: |
. /home/runner/.vcpkg/vcpkg-init
vcpkg activate
run: |
echo "Run test projects ..."
./build.py --verbose -c ${{ matrix.compiler }} -d "CM*" run || echo "::warning::==== Some configurations failed to run! ==="
- name: Deactivate Arm tool license
if: always()
working-directory: ./CMSIS/CoreValidation/Project
run: |
. /home/runner/.vcpkg/vcpkg-init
vcpkg activate
if [[ -n "${{ env.ARM_UBL_ACTIVATION_CODE }}" ]]; then
armlm deactivate --code ${{ env.ARM_UBL_ACTIVATION_CODE }}
else
armlm deactivate --product KEMDK-COM0
fi
- name: Archive Test Reports
if: ${{ !cancelled() && env.ARM_UBL_ACTIVATION_CODE }}
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.compiler }}
Expand Down
4 changes: 2 additions & 2 deletions CMSIS/Core/Include/cmsis_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@

/* CMSIS-Core(M) Version definitions */
#define __CM_CMSIS_VERSION_MAIN ( 6U) /*!< \brief [31:16] CMSIS-Core(M) main version */
#define __CM_CMSIS_VERSION_SUB ( 0U) /*!< \brief [15:0] CMSIS-Core(M) sub version */
#define __CM_CMSIS_VERSION_SUB ( 1U) /*!< \brief [15:0] CMSIS-Core(M) sub version */
#define __CM_CMSIS_VERSION ((__CM_CMSIS_VERSION_MAIN << 16U) | \
__CM_CMSIS_VERSION_SUB ) /*!< \brief CMSIS Core(M) version number */

/* CMSIS-Core(A) Version definitions */
#define __CA_CMSIS_VERSION_MAIN ( 6U) /*!< \brief [31:16] CMSIS-Core(A) main version */
#define __CA_CMSIS_VERSION_SUB ( 0U) /*!< \brief [15:0] CMSIS-Core(A) sub version */
#define __CA_CMSIS_VERSION_SUB ( 1U) /*!< \brief [15:0] CMSIS-Core(A) sub version */
#define __CA_CMSIS_VERSION ((__CA_CMSIS_VERSION_MAIN << 16U) | \
__CA_CMSIS_VERSION_SUB ) /*!< \brief CMSIS-Core(A) version number */

Expand Down
2 changes: 1 addition & 1 deletion CMSIS/Core/Test/vcpkg-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"registries": [
{
"kind": "artifact",
"location": "https://artifacts.tools.arm.com/vcpkg-ce-registry/registry.zip",
"location": "https://artifacts.tools.arm.com/vcpkg-registry",
"name": "arm"
}
],
Expand Down
4 changes: 2 additions & 2 deletions CMSIS/CoreValidation/Project/vcpkg-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"registries": [
{
"kind": "artifact",
"location": "https://artifacts.keil.arm.com/vcpkg-ce-registry/registry.zip",
"location": "https://artifacts.tools.arm.com/vcpkg-registry",
"name": "arm"
}
],
Expand All @@ -11,7 +11,7 @@
"arm:ninja": "^1.10.2",
"arm:compilers/arm/armclang":"^6.22.0",
"arm:compilers/arm/arm-none-eabi-gcc": "^13.2.1",
"arm:compilers/arm/llvm-embedded": "^17.0.1-0",
"arm:compilers/arm/llvm-embedded": "^18.1.3",
"arm:tools/open-cmsis-pack/cmsis-toolbox": "^2.1.0-0",
"arm:models/arm/avh-fvp": "11.22.39",
"arm:debuggers/arm/armdbg": "^6.0.0"
Expand Down
1 change: 1 addition & 0 deletions CMSIS/Documentation/Doxygen/Core/src/core_std_files.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Header File | Target Processor Core
┣ 📄 core_cm23.h | Cortex-M23 processor
┣ 📄 core_cm33.h | Cortex-M33 processor
┣ 📄 core_cm35p.h | Cortex-M35P processor
┣ 📄 core_cm52.h | Cortex-M52 processor
┣ 📄 core_cm55.h | Cortex-M55 processor
┣ 📄 core_cm85.h | Cortex-M85 processor
┣ 📄 core_starmc1.h | STAR-MC1 processor
Expand Down

0 comments on commit f46041c

Please sign in to comment.