Skip to content

Commit

Permalink
added CI for defaults updating
Browse files Browse the repository at this point in the history
  • Loading branch information
marwaneltoukhy committed Oct 8, 2023
1 parent 0f3e1c1 commit b1cad15
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/update_defaults.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
# Runs on Every Push
push:
# Runs on Pull Requests
pull_request:
workflow_dispatch:

jobs:
defaults:
runs-on: ubuntu-latest
strategy:
matrix:
design_types: ["openframe", "analog", "digital"]
steps:
- uses: actions/checkout@v4

- name: download README and gds files
run: |
mkdir -p $GITHUB_WORKSPACE/tmp_default_content/gds
if [ "${{ matrix.design_types }}" = "openframe" ]; then
repo_name="caravel_openframe_project"
elif [ "${{ matrix.design_types }}" = "analog" ]; then
repo_name="caravel_user_project_analog"
elif [ "${{ matrix.design_types }}" = "digital" ]; then
repo_name="caravel_user_project"
fi
curl -o $GITHUB_WORKSPACE/tmp_default_content/README_${{ matrix.design_types }}.md -L https://raw.githubusercontent.com/efabless/$repo_name/main/README.md
python3 $GITHUB_WORKSPACE/checks/defaults_check.py -i $GITHUB_WORKSPACE/tmp_default_content -d $GITHUB_WORKSPACE/_default_content

0 comments on commit b1cad15

Please sign in to comment.