Skip to content

FIX: fixing various pragma open loops #39

FIX: fixing various pragma open loops

FIX: fixing various pragma open loops #39

name: build-latest-container
on:
pull_request:
branches: [master]
types: [opened, reopened, synchronize, closed]
paths:
- '**.cu'
- '**.cuh'
- '**.c'
- '**.h'
- '**.cpp'
- '**.hpp'
- '**.cmake'
- CMakeLists.txt
- Dockerfile.prod
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
CUDA_ARCH: 75 # Default architecture for CI builds
jobs:
build-latest-container:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Determine branch name
id: branch
run: |
BRANCH="${{ github.head_ref || github.ref_name }}"
echo "branch=${BRANCH}" >> $GITHUB_OUTPUT
echo "Building from branch: ${BRANCH}"
- name: Build and push production image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.prod
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
build-args: |
CUDA_ARCH=${{ env.CUDA_ARCH }}
secrets: |
BRANCH_NAME=${{ steps.branch.outputs.branch }}
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:base
cache-to: type=inline
platforms: linux/amd64