forked from libre-chip/fayalite
24 lines
1 KiB
YAML
24 lines
1 KiB
YAML
# SPDX-License-Identifier: LGPL-3.0-or-later
|
|
# See Notices.txt for copyright information
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: debian-12
|
|
container:
|
|
image: git.libre-chip.org/libre-chip/fayalite-deps:latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- run: |
|
|
scripts/check-copyright.sh
|
|
- uses: https://git.libre-chip.org/mirrors/rust-cache@v2
|
|
with:
|
|
save-if: ${{ github.ref == 'refs/heads/master' }}
|
|
- run: cargo test
|
|
- run: cargo build --tests --features=unstable-doc
|
|
- run: cargo test --doc --features=unstable-doc
|
|
- run: cargo doc --features=unstable-doc
|
|
- run: FAYALITE_TEST_HASHER=always_zero cargo test --test=module --features=unstable-doc,unstable-test-hasher
|
|
- run: cargo run --example blinky yosys-nextpnr-xray --nextpnr-xilinx-chipdb-dir /opt/fayalite-deps/nextpnr-xilinx/xilinx --prjxray-db-dir /opt/fayalite-deps/prjxray-db --device xc7a100ticsg324-1L -o target/blinky-out --clock-frequency=$((1000*1000*100))
|