Skip to content

Commit 516f369

Browse files
committed
Remove pdm.lock and pins.lock, and lock in CI
1 parent eaf07be commit 516f369

File tree

3 files changed

+17
-3345
lines changed

3 files changed

+17
-3345
lines changed

.github/workflows/main.yaml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,18 @@ jobs:
2121
- name: Set up PDM
2222
uses: pdm-project/setup-pdm@v4
2323
with:
24+
python-version-file: pyproject.toml
25+
cache-dependency-path: pyproject.toml
2426
cache: true
27+
- name: Relock PDM
28+
run: pdm lock -d
2529
- name: Install dependencies
2630
run: |
27-
pdm install
28-
- run: pdm run chipflow silicon submit
31+
pdm install -d
32+
- name: Lock pins
33+
run: pdm run chipflow pin lock
34+
- name: Submit to cloud backend
35+
run: pdm run chipflow silicon submit
2936
env:
3037
CHIPFLOW_API_ENDPOINT: 'https://build-staging.chipflow.org/build/submit'
3138
CHIPFLOW_API_KEY_ID: ${{ secrets.CHIPFLOW_API_KEY_ID }}
@@ -41,17 +48,24 @@ jobs:
4148
- name: Set up PDM
4249
uses: pdm-project/setup-pdm@v4
4350
with:
51+
python-version-file: pyproject.toml
52+
cache-dependency-path: pyproject.toml
4453
cache: true
54+
- name: Relock PDM
55+
run: |
56+
pdm lock -d
4557
- name: Install dependencies
4658
run: |
47-
pdm install
59+
pdm install -d
4860
- name: Cache YoWASP build products
4961
uses: actions/cache@v4
5062
with:
5163
path: ~/.cache/YoWASP
5264
key: YoWASP-${{ runner.os }}-${{ hashFiles('./.venv/**/*.wasm') }}
5365
restore-keys: |
5466
YoWASP-${{ runner.os }}-
67+
- name: Lock pins
68+
run: pdm run chipflow pin lock
5569
- name: Run tests
5670
run: |
5771
make sim-check

0 commit comments

Comments
 (0)