Emil J. Tywoniak
dfbef2fe24
.github: run unit tests in build jobs, not test jobs
2026-02-11 00:55:36 +01:00
Krystine Sherwin
9f30f0e7d6
test-build: Don't rebuild OBJS
2026-02-10 15:34:47 +13:00
Krystine Sherwin
030e495c8b
test-build: Build and cache libyosys.so
2026-02-10 15:05:17 +13:00
Emil J. Tywoniak
214d09a8c6
.github: everything that triggers on main or PRs should trigger on merge queue commit
2025-11-27 14:57:02 +01:00
Krystine Sherwin
1f6ac5f392
CI: Split dependency setup
...
Split into common + build/docs/test (common always installs, build/docs/test are installed as requested with `build-*-deps` input flag).
2025-11-04 07:39:06 +01:00
Krystine Sherwin
0e2d24edd3
CI: iverilog setup as composite action
...
Called during setup-build-env.
2025-11-04 07:39:06 +01:00
Krystine Sherwin
2d778a94fa
action.yml: Playing with apt cache
2025-11-04 07:39:05 +01:00
Miodrag Milanović
fcc3d7132d
Fix building and running unit tests ( #5374 )
...
* Fix building and running unit tests
* Enable unit tests
* Add gtest always
* test-sanitizers.yml: Use makefile.conf
* proper test setup
* make it run on macOS
* Run libyosys build only for unit tests after testing is done
* Disable LTO on public CI
---------
Co-authored-by: Krystine Sherwin <93062060+KrystalDelusion@users.noreply.github.com>
2025-09-23 17:10:18 +02:00
Krystine Sherwin
19667dd6f1
CI: Don't use self-hosted runner on forks
2025-09-19 11:43:22 +12:00
Krystine Sherwin
7e1292dd2d
CI: brew install autoconf for iverilog
2025-09-12 10:41:01 +02:00
Krystine Sherwin
f102b25914
Reapply "Merge pull request #5301 from KrystalDelusion/krys/re_5280"
...
This reverts commit 88eb83a0c3 .
2025-09-12 10:41:01 +02:00
Miodrag Milanovic
88eb83a0c3
Revert "Merge pull request #5301 from KrystalDelusion/krys/re_5280"
...
This reverts commit c9a602e882 , reversing
changes made to 51eaaffe09 .
2025-08-28 11:58:02 +02:00
Krystine Sherwin
1cdf058df4
ci: Fix iverilog version caching
2025-08-19 11:33:05 +12:00
Krystine Sherwin
b42be1df80
ci: Fix test-cells
2025-08-19 11:30:16 +12:00
Krystine Sherwin
eb773ce071
Reapply "Workflow adjustments"
...
This reverts commit b640a16b07 .
2025-08-19 11:29:53 +12:00
Jannis Harder
b640a16b07
Revert "Workflow adjustments"
2025-08-18 20:39:00 +02:00
Miodrag Milanović
1a52a714b4
Merge pull request #5280 from YosysHQ/krys/ci_changes
...
Workflow adjustments
2025-08-18 10:17:12 +02:00
Krystine Sherwin
1e6e25c81f
ci: Use correct build artifact
2025-08-12 12:43:14 +12:00
Krystine Sherwin
0f8c040371
ci: Move SAN into a separate workflow
2025-08-12 12:22:02 +12:00
Krystine Sherwin
73403ad830
ci: Adjust workflow triggers for tests
...
In light of problems with concurrent skipping, disable it.
Instead, limit the `push` trigger to just main, and enable `workflow_dispatch` for manual triggering.
Don't cancel builds from main if a new commit is pushed.
2025-08-12 12:05:23 +12:00
Krystine Sherwin
c630f995d5
ci: Reduce test_cell count and use a seed
2025-08-12 11:17:00 +12:00
Krystine Sherwin
ba01f7c64f
ci: Run test_cell
...
Includes special cases for partially supported cells.
2025-08-12 10:57:59 +12:00
Krystine Sherwin
ab403635e3
CI: Enable source tracking for reusable build
...
The `test-docs-build` jobs require source tracking enabled to prevent warnings-as-errors.
Also add an extra note to the readme in case users run into the same.
2025-08-06 13:52:13 +12:00
Krystine Sherwin
e6961d8c9f
CI: Test with ASAN as well
...
New matrix variable for sanitizer, running `undefined` and `address` separately
(because they are mutually exclusive). Probably don't need to run both
sanitizers on both os targets, but it's probably fine.
2025-06-28 11:33:18 +12:00
KrystalDelusion
a2e1d0165f
Merge pull request #5016 from YosysHQ/krys/zizmor
...
CI: Fixes from zizmor
2025-04-12 09:02:59 +12:00
Catherine
f5c53a99e7
CI: Sanitize for undefined behavior.
2025-02-03 10:19:19 +01:00
Krystine Sherwin
e609a59325
CI: Fixes from zizmor
...
> A static analysis tool for Github Actions
https://github.com/woodruffw/zizmor
Mostly means adding `persist-credentials: false` to checkouts and replacing `{{ env.VARNAME }}` with shell substitution.
2024-12-12 15:59:16 +13:00
Krystine Sherwin
f881ba6200
test-docs-build: Install docs prereqs
2024-10-18 05:38:49 +13:00
Krystine Sherwin
d1c6699125
test-docs-build: Use fast runner
2024-10-17 07:15:11 +13:00
Krystine Sherwin
5d14c3017e
test-build.yml: Add test-docs-build
...
Try use self hosted linux runner to build html and latexpdf to check for errors.
Trying to use the build artifact didn't seem to work, so just run it on its own.
Upload docs/build folder as artifact to enable review without having to build
locally. Note: doesn't include verific, so will differ slightly from final
published docs.
2024-10-17 06:10:12 +13:00
Roland Coeurjoly
5fca9b867d
Add Get vcd2fst step to test-yosys job
...
Co-authored-by: Miodrag Milanovic <mmicko@gmail.com>
Co-authored-by: Roland Coeurjoly <rolandcoeurjoly@gmail.com>
2024-09-30 16:25:32 +02:00
Emil J. Tywoniak
eeecb54532
Makefile: no LTO and lld by default
2024-08-05 19:28:09 +02:00
Krystine Sherwin
26b148f455
test-build.yml: Remove duplicated yosys-config
2024-05-11 11:28:16 +12:00
Krystine Sherwin
95bd7c9b08
test-build.yml Use pre_docs_job for build-yosys
...
pre_job will never skip something that is not skipped by pre_docs_job, so we can gate the build step by pre_docs_job to skip it when the two later jobs are both being skipped.
2024-05-11 11:00:58 +12:00
Krystine Sherwin
a8bad3060c
test-build.yml: test-docs should not ignore docs changes
2024-05-11 10:51:08 +12:00
Miodrag Milanovic
6dde8107c3
Remove checkout for specific iverilog git version
2024-05-10 15:46:32 +02:00
Krystine Sherwin
c24a9063b6
Fix submodules
2024-05-10 10:15:03 +12:00
Krystine Sherwin
24b3690c25
test-build: Use macos-latest (macOS 14, M1)
2024-05-10 09:53:46 +12:00
Miodrag Milanovic
eae7356c70
Cleanups and update of VS action
2024-05-10 09:53:46 +12:00
Krystine Sherwin
7d8928af4b
ci: Remove macOS from test-docs
...
macOS fails due to missing gvpack, but trying to install graphviz
triggers a Python update which breaks the macOS runner.
2024-05-10 09:51:37 +12:00
Krystine Sherwin
c89c5c34a0
ci: Disable fail fast for test runs
2024-05-10 09:51:37 +12:00
Krystine Sherwin
7fbf286b3f
ci: Update for main branch rename
2024-05-10 09:51:37 +12:00
Krystine Sherwin
6f602e79d4
docs: Debugging macro test fail
...
Call yosys-config post build extraction for sanity check.
Report absolute path for yosys exe if it can't be found.
2024-05-10 09:51:36 +12:00
Krystine Sherwin
3c65ddbea0
ci: Checkout goes first
2024-05-10 09:49:34 +12:00
Krystine Sherwin
d07323e7dd
ci: Add action for reusable build env setup
2024-05-10 09:49:34 +12:00
Krystine Sherwin
326d802220
ci: split test-compile from test-build
2024-05-10 09:49:33 +12:00
Krystine Sherwin
154464e7ce
ci: add macos test build
2024-05-10 09:45:31 +12:00
Krystine Sherwin
c9c6b96ba9
ci: add missing macOS build
...
`test-macos.yml` included c++17 which was missing in `test-build.yml`.
2024-05-10 09:45:31 +12:00
Krystine Sherwin
9348221154
ci: simplify tests a bit
...
Remove compiler and cpp_std from `build-yosys` matrix. Using `config-$CC` will instead fall back to default values.
Drop `Tool versions` step and introduce `yosys-config` output instead.
Rename `test-builds` to `test-compile`.
2024-05-10 09:45:31 +12:00
Krystine Sherwin
8bc206928f
ci: split test build from matrix
...
Allow test suite to run if, for example, the C++20 builds are failing but C++11 are fine.
2024-05-10 09:45:03 +12:00