FIX: fixing CHAN_FREQ data type #37
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-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 |