diff --git a/.github/workflows/cryo_gen.yml b/.github/workflows/cryo_gen.yml deleted file mode 100644 index 87e6f2216..000000000 --- a/.github/workflows/cryo_gen.yml +++ /dev/null @@ -1,50 +0,0 @@ -name: Cryo Generator Workflow - -on: - push: - branches: - - main - pull_request: - paths: - - 'openfasoc/common/**' - - 'openfasoc/generators/common/**' - - 'openfasoc/generators/cryo-gen/**' - workflow_dispatch: - -jobs: - cryoGenerator: - runs-on: ubuntu-latest - strategy: - matrix: - platform: [sky130hd, sky130hs, sky130hvl] - - steps: - - name: Remove unnecessary files - run: | - du . -h - sudo rm -rf /usr/share/dotnet - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - du . -h - - - name: Checkout repo - uses: actions/checkout@v2 - - - name: Test ${{ matrix.platform }} Cryo Gen - env: - IMAGE_NAME: msaligane/openfasoc:stable - run: | - cd $GITHUB_WORKSPACE - touch file.log - docker run --rm \ - -v $PWD:$PWD\ - -w $PWD\ - $IMAGE_NAME\ - bash -c "\ - cp ./.github/scripts/parse_rpt.py ./openfasoc/generators/cryo-gen/. &&\ - pip3 install -r requirements.txt &&\ - cd ./openfasoc/generators/cryo-gen &&\ - make ${{ matrix.platform }}_cryo &&\ - python3 parse_rpt.py ${{ matrix.platform }} - " && exit_code=$? | tee -a file.log - if [ $? -ne 0 ]; then exit 1; fi - if grep "^Error" file.log; then exit 1; else exit 0; fi diff --git a/.github/workflows/ldo_sky130hvl.yml b/.github/workflows/ldo_sky130hvl.yml deleted file mode 100644 index 5597b422e..000000000 --- a/.github/workflows/ldo_sky130hvl.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: sky130hvl_ldo-generator - -on: - push: - branches: - - main - pull_request: - paths: - - 'openfasoc/common/**' - - 'openfasoc/generators/common/**' - - 'openfasoc/generators/ldo-gen/**' - workflow_dispatch: - -jobs: - sky130hd_ldoGen: - runs-on: ubuntu-latest - steps: - - name: Remove unnecessary files - run: | - du . -h - sudo rm -rf /usr/share/dotnet - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - du . -h - - - name: Checkout repo - uses: actions/checkout@v2 - - - name: Test sky130hvl LDO - env: - IMAGE_NAME: msaligane/openfasoc:stable - run: | - cd $GITHUB_WORKSPACE - touch file.log - docker run --rm \ - -v $PWD:$PWD\ - -w $PWD\ - $IMAGE_NAME\ - bash -c "\ - cp ./.github/scripts/parse_rpt.py ./openfasoc/generators/ldo-gen/. &&\ - pip3 install -r requirements.txt &&\ - cd ./openfasoc/generators/ldo-gen &&\ - make sky130hvl_ldo &&\ - python3 parse_rpt.py sky130hvl_ldo - " && exit_code=$? | tee -a file.log - if [ $? -ne 0 ]; then exit 1; fi - if grep "\[ERROR\]" file.log; then exit 1; else exit 0; fi diff --git a/.github/workflows/tempSense_sky130hd.yml b/.github/workflows/tempSense_sky130hd.yml deleted file mode 100644 index 92ddee223..000000000 --- a/.github/workflows/tempSense_sky130hd.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: sky130hd_temp-sense-generator - -on: - push: - branches: - - main - pull_request: - paths: - - 'openfasoc/common/**' - - 'openfasoc/generators/common/**' - - 'openfasoc/generators/temp-sense-gen/**' - workflow_dispatch: - -jobs: - sky130hd_temp: - runs-on: ubuntu-latest - steps: - - name: Remove unnecessary files - run: | - du . -h - sudo rm -rf /usr/share/dotnet - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - du . -h - - - name: Checkout repo - uses: actions/checkout@v2 - - - name: Test sky130hd Temp sensor - env: - IMAGE_NAME: msaligane/openfasoc:stable - run: | - cd $GITHUB_WORKSPACE - touch file.log - docker run --rm \ - -v $PWD:$PWD\ - -w $PWD\ - $IMAGE_NAME\ - bash -c "\ - cp ./.github/scripts/parse_rpt.py ./openfasoc/generators/temp-sense-gen/. &&\ - pip3 install -r requirements.txt &&\ - cd ./openfasoc/generators/temp-sense-gen &&\ - make sky130hd_temp &&\ - python3 parse_rpt.py - " && exit_code=$? | tee -a file.log - if [ $? -ne 0 ]; then exit 1; fi - if grep "\[ERROR\]" file.log; then exit 1; else exit 0; fi diff --git a/.github/workflows/test_python_api.yml b/.github/workflows/test_python_api.yml deleted file mode 100644 index bec0bf60f..000000000 --- a/.github/workflows/test_python_api.yml +++ /dev/null @@ -1,42 +0,0 @@ ---- -name: Lint and Test Python API -# https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-python - -on: - pull_request: - paths: - - 'openfasoc/common/**' - - 'openfasoc/generators/common/**' - - 'tests/**' - - 'requirements.txt' - - 'pytest.ini' - push: - schedule: - - cron: 0 2 * * * # run at 2 AM UTC - -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - max-parallel: 12 - matrix: - python-version: ["3.8", "3.9", "3.10"] - os: [ubuntu-latest] - - steps: - - name: Cancel Workflow Action - uses: styfle/cancel-workflow-action@0.9.1 - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - sudo apt install -y ngspice - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install pytest - # pip install . - - name: Test with pytest - run: pytest diff --git a/.github/workflows/verify_gen_gds.yml b/.github/workflows/verify_gen_gds.yml new file mode 100644 index 000000000..3189470a8 --- /dev/null +++ b/.github/workflows/verify_gen_gds.yml @@ -0,0 +1,36 @@ +name: Basic Installation, gds setup +on: [push, pull_request] +jobs: + Install-Dependencies_Data-Prep_CPU-Training_CPU-Inference: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - run: echo "${{ github.repository }} repository has been cloned to the runner." + - run: echo "Currently on ${{ github.ref }} branch" + - name: ls of directory + run: | + ls ${{ github.workspace }} + # Caching pip dependencies + - name: Cache pip dependencies + uses: actions/cache@v3 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements_cpu.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + - name: Install dependencies + run: | + $CONDA/bin/conda env update --file environment.yml --name base + source git_runner_deps.sh + source ~/miniconda3/bin/activate + cd openfasoc/generators/gdsfactory-gen + python3 -m pip install --upgrade pip + python3 -m pip install -r requirements.txt + ls + cd tapeout_and_RL + ls + python3 sky130_nist_tapeout.py gen_opamp -output_gds test.gds + python3 sky130_nist_tapeout.py test -output_dir test_output_dir + ls +