Merge pull request #453 from rahulk29/sram-fixes #1289
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check-workspace: | |
name: Build, lint, and test | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install ngspice | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y ngspice | |
- name: Clone external dependencies | |
uses: actions/checkout@v3 | |
with: | |
repository: substrate-labs/skywater-pdk | |
path: tech/sky130/skywater-pdk | |
- name: Update submodules | |
working-directory: tech/sky130/skywater-pdk | |
run: | | |
git submodule update --init ./libraries/sky130_fd_pr/latest | |
git submodule update --init ./libraries/sky130_fd_sc_hd/latest | |
git submodule update --init ./libraries/sky130_fd_sc_hs/latest | |
- name: Install nightly toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
id: toolchain-nightly | |
with: | |
toolchain: nightly | |
components: rustfmt | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
id: toolchain | |
with: | |
toolchain: stable | |
components: clippy | |
- name: Cache workspace | |
uses: Swatinem/rust-cache@v2 | |
with: | |
key: ${{ steps.toolchain.outputs.cachekey }} | |
- name: Check formatting | |
run: | | |
cargo +nightly fmt --check | |
- name: Test | |
shell: bash | |
run: | | |
make test | |
env: | |
SKY130_OPEN_PDK_ROOT: ${{ github.workspace }}/tech/sky130/skywater-pdk |