Bump actions/checkout from 4.1.7 to 4.2.0 #728
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test_libs | |
on: | |
workflow_call: | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/test_libs.yml' | |
- '.github/matrix_includes_test_libs.json' | |
- 'libs/**' | |
- '!**/docs/**/*' | |
- '!**/*.md' | |
- 'test/**' | |
pull_request: | |
paths: | |
- '.github/workflows/test_libs.yml' | |
- '.github/matrix_includes_test_libs.json' | |
- 'libs/**' | |
- '!**/docs/**/*' | |
- '!**/*.md' | |
- 'test/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
setup: | |
uses: Open-CMSIS-Pack/devtools/.github/workflows/shared_setup_env.yml@main | |
with: | |
run_if: ${{ ((github.event.schedule != '') && github.event.repository.private) == false }} | |
matrix_prep: | |
needs: setup | |
uses: Open-CMSIS-Pack/devtools/.github/workflows/shared_matrix_prep.yml@main | |
with: | |
workflow_name: test_libs | |
test_libs: | |
runs-on: ${{ matrix.runs_on }} | |
needs: [ setup, matrix_prep ] | |
timeout-minutes: 15 | |
strategy: | |
fail-fast: false | |
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }} | |
steps: | |
- name: Checkout devtools | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
# https://github.com/Open-CMSIS-Pack/devtools-build-action | |
- name: Build all libs | |
uses: Open-CMSIS-Pack/devtools-build-action@79c0fc7d7bc834eb12aa1e319756deab0dda773f # arm64 | |
id: devtools-build | |
with: | |
add_cmake_variables: '-DLIBS_ONLY=ON' | |
arch: ${{ matrix.arch }} | |
target: all | |
- name: Install macos deps | |
if: ${{ startsWith(matrix.runs_on, 'macos') }} | |
run: | | |
brew install \ | |
dos2unix \ | |
wget | |
- name: Install linux deps | |
if: ${{ startsWith(matrix.runs_on, 'ubuntu') }} | |
run: | | |
sudo apt-get update | |
sudo apt-get install \ | |
dos2unix \ | |
libxml2-utils | |
# CrossPlatformUnitTests failing for arm64 | |
- name: Run libs unittest | |
if: matrix.arch != 'arm64' | |
run: | | |
ctest -C Debug -V | |
working-directory: ./build | |
- name: Archive libs unittest reports | |
if: always() && (matrix.arch != 'arm64') | |
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | |
with: | |
name: unit_test_result_test_libs-${{ matrix.target }}-${{ matrix.arch }} | |
path: ./build/test_reports/*${{ matrix.target }}-${{ matrix.arch }}.xml | |
retention-days: ${{ needs.setup.outputs.retention_days }} | |
if-no-files-found: error | |
test-results-preparation: | |
name: "Publish Tests Results" | |
needs: [ test_libs ] | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Event File | |
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | |
with: | |
name: Event File test_libs | |
path: ${{ github.event_path }} |