Update build_on_pr.yml

This commit is contained in:
flybird11111 2025-05-23 15:31:28 +08:00 committed by GitHub
parent 7b398485a7
commit f009d3c5c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,7 +34,7 @@ jobs:
anyExtensionFileChanged: ${{ steps.find-extension-change.outputs.any_changed }} anyExtensionFileChanged: ${{ steps.find-extension-change.outputs.any_changed }}
changedLibraryFiles: ${{ steps.find-lib-change.outputs.all_changed_files }} changedLibraryFiles: ${{ steps.find-lib-change.outputs.all_changed_files }}
anyLibraryFileChanged: ${{ steps.find-lib-change.outputs.any_changed }} anyLibraryFileChanged: ${{ steps.find-lib-change.outputs.any_changed }}
runs-on: ubuntu-latest runs-on: [self-hosted,ubuntu-latest]
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-detect-change group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-detect-change
cancel-in-progress: true cancel-in-progress: true
@ -87,7 +87,7 @@ jobs:
name: Build and Test Colossal-AI name: Build and Test Colossal-AI
needs: detect needs: detect
if: needs.detect.outputs.anyLibraryFileChanged == 'true' if: needs.detect.outputs.anyLibraryFileChanged == 'true'
runs-on: ubuntu-latest runs-on: [self-hosted,ubuntu-latest]
container: container:
image: image-cloud.luchentech.com/hpcaitech/pytorch-cuda:2.2.2-12.1.0 image: image-cloud.luchentech.com/hpcaitech/pytorch-cuda:2.2.2-12.1.0
options: --gpus all --shm-size=2g --rm -v /dev/shm -v /data/scratch:/data/scratch options: --gpus all --shm-size=2g --rm -v /dev/shm -v /data/scratch:/data/scratch