fayalite/.forgejo/workflows/test.yml

26 lines
1.2 KiB
YAML
Raw Normal View History

2024-09-22 15:30:05 -07:00
# SPDX-License-Identifier: LGPL-3.0-or-later
# See Notices.txt for copyright information
2024-06-11 22:13:07 -07:00
on: [push, pull_request]
jobs:
test:
runs-on: debian-12
container:
image: git.libre-chip.org/libre-chip/fayalite-deps:latest
2024-06-11 22:13:07 -07:00
steps:
2025-10-09 23:48:17 -07:00
- uses: actions/checkout@v3
2024-06-11 22:13:07 -07:00
with:
fetch-depth: 0
2024-09-22 15:30:53 -07:00
- run: |
scripts/check-copyright.sh
2025-03-02 17:43:29 -08:00
- uses: https://git.libre-chip.org/mirrors/rust-cache@v2
2024-06-11 22:13:07 -07:00
with:
save-if: ${{ github.ref == 'refs/heads/master' }}
2024-06-13 13:27:57 -07:00
- run: cargo test
- run: cargo build --tests --features=unstable-doc
2024-12-01 20:21:26 -08:00
- run: cargo test --doc --features=unstable-doc
- run: cargo doc --features=unstable-doc
2025-04-09 21:11:09 -07:00
- run: FAYALITE_TEST_HASHER=always_zero cargo test --test=module --features=unstable-doc,unstable-test-hasher
- run: cargo run --example blinky yosys-nextpnr-xray --platform=arty-a7-100t --nextpnr-xilinx-chipdb-dir /opt/fayalite-deps/nextpnr-xilinx/xilinx --prjxray-db-dir /opt/fayalite-deps/prjxray-db -o target/blinky-out
2025-10-22 20:12:08 -07:00
- run: cargo run --example tx_only_uart yosys-nextpnr-xray --platform=arty-a7-100t --nextpnr-xilinx-chipdb-dir /opt/fayalite-deps/nextpnr-xilinx/xilinx --prjxray-db-dir /opt/fayalite-deps/prjxray-db -o target/tx_only_uart-out