[Fix] indirect access attribute #23
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: Docker image CI (PyTorch 2.8) | |
| on: | |
| push: | |
| branches: [ "torch_v2.8" ] | |
| workflow_dispatch: | |
| jobs: | |
| build-and-test: | |
| runs-on: self-hosted | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| submodules: recursive | |
| - name: Login to GHCR | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and Push Docker Image (PyTorch 2.8) | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: ./Dockerfile | |
| push: true | |
| no-cache: true | |
| build-args: | | |
| BASE_IMAGE=ghcr.io/psal-postech/torchsim_base_2_8:latest | |
| tags: ghcr.io/psal-postech/torchsim-test-2-8:${{ github.sha }} | |
| - name: Wait for GHCR propagation | |
| run: | | |
| for i in {1..30}; do | |
| echo "Checking if image exists in GHCR (attempt $i)..." | |
| if docker manifest inspect ghcr.io/psal-postech/torchsim-test-2-8:${GITHUB_SHA} > /dev/null 2>&1; then | |
| echo "Image is now available in GHCR." | |
| exit 0 | |
| fi | |
| echo "Image not yet available, retrying in 30 seconds..." | |
| sleep 20 | |
| done | |
| echo "Image did not become available in GHCR within expected time." | |
| exit 1 | |
| test-pytorchsim-wrapper: | |
| needs: build-and-test | |
| uses: ./.github/workflows/pytorchsim_test.yml | |
| with: | |
| image_name: ghcr.io/psal-postech/torchsim-test-2-8:${{ github.sha }} | |
| vector_lane: 128 | |
| spad_size: 128 |