-
Notifications
You must be signed in to change notification settings - Fork 2
77 lines (73 loc) · 1.97 KB
/
main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
on:
push:
branches:
- main
pull_request:
merge_group:
name: CI
jobs:
test:
strategy:
matrix:
include:
- os: ubuntu-latest
allow-failure: false
- os: macos-latest
allow-failure: true
name: "test (${{ matrix.os }})"
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.allow-failure }}
steps:
- name: Check out source code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up PDM
uses: pdm-project/setup-pdm@v4
with:
cache: true
- name: Install dependencies
run: |
pdm install
- name: Cache YoWASP build products
uses: actions/cache@v4
with:
path: ~/.cache/YoWASP
key: YoWASP-${{ runner.os }}-${{ hashFiles('./.venv/**/*.wasm') }}
restore-keys: |
YoWASP-${{ runner.os }}-
- name: Run tests
run: |
pdm run test
license:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check source code licenses
run: |
docker run --platform=linux/amd64 -v ${PWD}:/src ghcr.io/google/addlicense -v -check -l BSD-2-Clause -c "ChipFlow" -s=only -ignore **/__init__.py **/*.py
chipflow-submit:
needs: test
runs-on: ubuntu-22.04
steps:
- name: Check out source code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Set up PDM
uses: pdm-project/setup-pdm@v4
with:
cache: true
- name: Install dependencies
run: |
pdm install
- run: pdm run chipflow silicon submit
env:
CHIPFLOW_API_KEY_ID: ${{ secrets.CHIPFLOW_API_KEY_ID }}
CHIPFLOW_API_KEY_SECRET: ${{ secrets.CHIPFLOW_API_KEY_SECRET }}