Skip to content

Commit be34ed7

Browse files
Evagan2018soumeh01
andauthored
Updated action versions and Github runner (#195)
* Set ubuntu version to latest. Updated action version. * Update permissions and action usage in workflow * Update cmsis_rv2.yml to include permissions Add permissions section to the workflow file. * Simplify test results publishing in cmsis_rv2.yml Removed parameters for publishing test results in GitHub Actions workflow. --------- Co-authored-by: Sourabh Mehta <73165318+soumeh01@users.noreply.github.com>
1 parent c5effc8 commit be34ed7

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

‎.github/workflows/Build_Examples.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
matrix:
2424
compiler: [AC6, GCC, CLANG]
2525

26-
runs-on: ubuntu-24.04
26+
runs-on: ubuntu-latest
2727

2828
steps:
2929
- uses: actions/checkout@v7

‎.github/workflows/cmsis_rv2.yml‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: RTOS2 Validation
32

43
on:
@@ -11,6 +10,9 @@ concurrency:
1110
group: ${{ github.workflow }}-${{ github.ref }}
1211
cancel-in-progress: true
1312

13+
permissions:
14+
contents: read
15+
1416
env:
1517
CMSIS_PACK_ROOT: ${{ github.workspace }}/.packs
1618
ARM_UBL_ACTIVATION_CODE: ${{ secrets.ARM_UBL_ACTIVATION_CODE }}
@@ -22,7 +24,7 @@ jobs:
2224
matrix:
2325
compiler: [AC6, GCC, Clang]
2426

25-
runs-on: ubuntu-24.04
27+
runs-on: ubuntu-latest
2628

2729
steps:
2830
- name: Checkout CMSIS-FreeRTOS
@@ -59,12 +61,12 @@ jobs:
5961
pip install -r ./CMSIS-RTOS2_Validation/Project/requirements.txt
6062
6163
- name: Setup vcpkg environment
62-
uses: ARM-software/cmsis-actions/vcpkg@v1.1
64+
uses: ARM-software/cmsis-actions/vcpkg@v1
6365
with:
6466
config: ./CMSIS-RTOS2_Validation/.ci/vcpkg-configuration.json
6567

6668
- name: Activate Arm tool license
67-
uses: ARM-software/cmsis-actions/armlm@v1.1
69+
uses: ARM-software/cmsis-actions/armlm@v1
6870
with:
6971
server: https://mdk-preview.keil.arm.com
7072
product: KEMDK-COM0
@@ -113,9 +115,11 @@ jobs:
113115

114116
publish-test-results:
115117
needs: [build-and-run]
116-
runs-on: ubuntu-24.04
118+
runs-on: ubuntu-latest
117119
if: github.event_name == 'pull_request'
118-
120+
permissions:
121+
checks: write
122+
pull-requests: write
119123
env:
120124
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
121125

@@ -127,10 +131,6 @@ jobs:
127131

128132
- name: Publish Test Results
129133
if: ${{ env.GITHUB_TOKEN }}
130-
uses: EnricoMi/publish-unit-test-result-action@v2
134+
uses: EnricoMi/publish-unit-test-result-action/linux@v2
131135
with:
132-
commit: ${{ github.event.workflow_run.head_sha }}
133-
event_file: ${{ github.event_path }}
134-
report_individual_runs: true
135-
event_name: ${{ github.event.workflow_run.event }}
136136
files: "artifacts/**/*.junit"

‎.github/workflows/pack.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ concurrency:
1515
jobs:
1616
pack:
1717
name: Generate pack
18-
runs-on: ubuntu-24.04
18+
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v7
2121
with:
@@ -28,7 +28,7 @@ jobs:
2828
2929
- uses: Open-CMSIS-Pack/gen-pack-action@main
3030
with:
31-
doxygen-version: 1.13.2 # default
31+
doxygen-version: 1.13.2 # default
3232
packchk-version: 1.3.95 # default
3333
gen-doc-script: ./Documentation/Doxygen/gen_doc.sh # skipped by default
3434
doc-path: ./Documentation/html # skipped by default

0 commit comments

Comments
 (0)