From c1fd9524c81633986ead96a77ca444fdbc848848 Mon Sep 17 00:00:00 2001 From: Maksim Levental Date: Mon, 16 Dec 2024 19:17:43 -0500 Subject: [PATCH] add GH workflow --- .github/workflows/build_zoom_backend.yml | 98 ++++++++++++++++++++++++ build.sh | 1 + 2 files changed, 99 insertions(+) create mode 100644 .github/workflows/build_zoom_backend.yml diff --git a/.github/workflows/build_zoom_backend.yml b/.github/workflows/build_zoom_backend.yml new file mode 100644 index 00000000000000..53236e861763c9 --- /dev/null +++ b/.github/workflows/build_zoom_backend.yml @@ -0,0 +1,98 @@ +name: "Build PyTorch" + +on: + workflow_dispatch: + inputs: + force_debug_with_tmate: + type: boolean + description: 'Run the build with tmate session' + required: false + default: false + debug_with_tmate: + type: boolean + description: 'Run the build with a tmate session ONLY in case of failure' + required: false + default: false + pull_request: + push: + branches: + - main + +concurrency: + # A PR number if a pull request and otherwise the commit hash. This cancels + # queued and in-progress runs for the same PR (presubmit) or commit + # (postsubmit). The workflow name is prepended to avoid conflicts between + # different workflows. + group: ${{ github.workflow }}-${{ github.event.number || github.sha }} + cancel-in-progress: true + +jobs: + build: + + strategy: + fail-fast: false + matrix: + include: + - name: "ubuntu-22.04" +# runs-on: "nodai-amdgpu-mi250-x86-64" + runs-on: "nod-ai-shared-cpubuilder-manylinux-x86_64" +# container: "rocm/pytorch:rocm6.2.3_ubuntu22.04_py3.10_pytorch_release_2.3.0" + + runs-on: ${{ matrix.runs-on }} + + name: ${{ matrix.name }} + + defaults: + run: + shell: bash + + permissions: + id-token: write + contents: write + + container: + image: ${{ matrix.container }} + + steps: + - name: "Check out repository" + uses: actions/checkout@v4.2.2 + with: + submodules: true + + - name: "Setup ROCm" + id: rocm + run: | + + tee --append /etc/yum.repos.d/rocm.repo <