Repository navigation
chore(deps): bump the github-actions group across 1 directory with 2 updates #1643
Workflow file for this run
This file contains hidden or 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: Build Libraries | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ amd-staging, amd-mainline, release/** ] | |
| paths: | |
| - 'Libraries/**' | |
| - '.github/workflows/**' | |
| pull_request: | |
| branches: [ amd-staging, amd-mainline, release/** ] | |
| paths: | |
| - 'Libraries/**' | |
| - '.github/workflows/**' | |
| schedule: | |
| # Nightly at 2 AM UTC | |
| - cron: '0 2 * * *' | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.number || github.sha }} | |
| cancel-in-progress: true | |
| env: | |
| DEBIAN_FRONTEND: noninteractive | |
| GPU_TARGETS: gfx908;gfx90a;gfx942;gfx950;gfx1030;gfx1100;gfx1101;gfx1200;gfx1201 | |
| jobs: | |
| build: | |
| name: "Build Libraries Examples" | |
| runs-on: self-hosted | |
| defaults: | |
| run: | |
| shell: bash | |
| container: | |
| image: ghcr.io/rocm/rocm-examples-ubuntu-24.04-rocm:10.1 | |
| steps: | |
| # see https://github.com/dorny/paths-filter/issues/212 | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Trust git directory | |
| run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| - uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3 | |
| id: changes | |
| with: | |
| filters: | | |
| ck: | |
| - 'Libraries/ComposableKernel/**' | |
| - name: Set CK build flag | |
| env: | |
| CK_CHANGED: ${{ steps.changes.outputs.ck }} | |
| run: | | |
| # Enable CK for: scheduled runs OR CK files changed | |
| if [ "$GITHUB_EVENT_NAME" == "schedule" ] || [ "$CK_CHANGED" == "true" ]; then | |
| ENABLE_CK=ON | |
| else | |
| ENABLE_CK=OFF | |
| fi | |
| echo "ENABLE_CK=${ENABLE_CK}" >> $GITHUB_ENV | |
| echo "ROCM_EXAMPLES_ENABLE_CK=${ENABLE_CK}" | |
| - name: Generate skip lists | |
| run: | | |
| python3 .github/build_tools/generate_skip_tests.py --channel stable --target "${GPU_TARGETS%%;*}" | |
| - name: CMake Configure, Build, and Install | |
| run: | | |
| cd Libraries | |
| cmake -DCMAKE_BUILD_TYPE=Release -DGPU_TARGETS="${GPU_TARGETS}" -DCMAKE_HIP_ARCHITECTURES="${GPU_TARGETS}" -DROCM_EXAMPLES_ENABLE_CK=${ENABLE_CK} -DROCM_EXAMPLES_ENABLE_OPENMP=ON -DCMAKE_PROJECT_INCLUDE_BEFORE="${GITHUB_WORKSPACE}/cmake/SkipExamples.cmake" -S . -B build | |
| cmake --build build --parallel $(nproc) | |
| cmake --install build --prefix install | |
| - name: Make | |
| run: | | |
| cd Libraries | |
| make -j $(nproc) ROCM_EXAMPLES_ENABLE_CK=${ENABLE_CK} HIP_ARCHITECTURES="${GPU_TARGETS}" SKIP_FROM_BUILD="$SKIP_FROM_BUILD" | |
| # Clean the workspace here since other jobs may not have the permissions to do so later | |
| # (needed for self-hosted runners) | |
| - name: Clean the workspace | |
| if: always() | |
| run: find "$GITHUB_WORKSPACE" -mindepth 1 -delete |