Repository navigation
58 lines (52 loc) · 1.75 KB
/
Copy pathoracle.yml
File metadata and controls
58 lines (52 loc) · 1.75 KB
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
name: oracle
# Stage gates that compare our tools with an external oracle. The oracle is installed on the runner
# only; nothing from it ships. A stage is done when this job is green. It installs KiCad and
# ngspice, so it runs by hand (workflow_dispatch) when a stage is checked, not on every pull request.
on:
workflow_dispatch:
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
jobs:
drc:
name: DRC counts match KiCad
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Install KiCad 9 (oracle only)
run: |
sudo add-apt-repository -y ppa:kicad/kicad-9.0-releases
sudo apt-get update
sudo apt-get install -y --no-install-recommends kicad
kicad-cli version
- name: Export fixtures, run the oracle, compare
run: scripts/oracle.sh target/oracle
- uses: actions/upload-artifact@v4
if: always()
with:
name: oracle-reports
path: target/oracle
if-no-files-found: ignore
sim:
name: Node voltages match ngspice
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Install ngspice (oracle only)
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends ngspice
ngspice --version | head -3
- name: Write decks, run the oracle, compare
run: scripts/sim_oracle.sh target/sim-oracle
- uses: actions/upload-artifact@v4
if: always()
with:
name: sim-oracle-reports
path: target/sim-oracle
if-no-files-found: ignore