Skip to content

Commit

Permalink
Change windows builds trigger conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
wmaxey committed Jul 28, 2023
1 parent 95e350f commit d1ef844
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ github.token }}

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.GPUCIBOT_DOCKERHUB_USER }}
password: ${{ secrets.GPUCIBOT_DOCKERHUB_TOKEN }}

- name: "Build image: ${{ matrix.edition }} + VS${{ matrix.version }}"
id: build_image
uses: ./.github/actions/build-windows-image
Expand All @@ -65,6 +59,13 @@ jobs:
cuda_version: ${{ inputs.cuda_version }}
isolation: process

- name: Login to Docker Hub
if: ${{ inputs.push_image }}
uses: docker/login-action@v2
with:
username: ${{ secrets.GPUCIBOT_DOCKERHUB_USER }}
password: ${{ secrets.GPUCIBOT_DOCKERHUB_TOKEN }}

- name: "Push image: ${{ steps.build_image.outputs.image }}"
if: ${{ inputs.push_image }}
id: push_image
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
name: Build Windows Images
name: Dispatch Windows Images

concurrency:
group: release-on-${{ github.event_name }}-from-${{ github.ref_name }}
cancel-in-progress: true

on:
pull_request:
branches:
- "pull-request/[0-9]+"
- "feature/.*"
paths: [.github/actions/windows_build.yml, scripts/windows/**]
push:
branches:
- "pull-request/[0-9]+"
Expand Down Expand Up @@ -38,7 +34,7 @@ jobs:
# Exclude MSVC 2022 and 11.1 as it is unsupported
- vs_version: "2022"
cuda_version: "11.1"
uses: ./.github/workflows/windows_build.yml
uses: ./.github/workflows/build-and-push-windows-images.yml
with:
runner: ${{ matrix.runner }}
win_edition: ${{ matrix.edition }}
Expand Down

0 comments on commit d1ef844

Please sign in to comment.