added set2 #21
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
| # This is the main workflow file for triggering GitHub Actions | |
| # | |
| # Author: Abhishek Sriram <noobsiecoder@gmail.com> | |
| # Date: Aug 20th, 2025 | |
| # Place: Boston, MA | |
| # This is the main workflow | |
| # It handles both deploy.yaml and integrate.yaml | |
| # Functionalities: | |
| # deploy.yaml -> Deploys repo to cloud and perform RLFT | |
| # integrate.yaml -> Performs testing before deployment | |
| name: main-workflow | |
| # Trigger on push to specific branch: "enhance-v1" for now | |
| # NOTE: Only triggers when dataset/testbench/hdlbits/... is modified | |
| on: | |
| push: | |
| branches: | |
| - enhance-v1 # specific branch | |
| paths: | |
| - "dataset/testbench/hdlbits/**" # specific path | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Integrate and Deploy | |
| uses: actions/checkout@v4 | |
| # Step 1: Build dockerfile image | |
| - name: Build an image of "Dockerfile.ci" | |
| run: | | |
| # This builds and tests the CI Docker image | |
| # to ensure all dependencies are properly installed | |
| docker build -f Dockerfile.ci -t verilog-llm . | |
| # Step 2: Run dockerfile image | |
| - name: Run "Dockerfile.ci" image | |
| run: | | |
| # This run the built CI Docker image | |
| docker run verilog-llm | |
| # Step 3: Ping cloud provider via API and check available credits | |
| # NOTE: skip job schedule only when: | |
| # 1) Usage above limit. | |
| # 2) Resource not available. | |
| # Step 4: Schedule Job |