TheDan64 / inkwell

It's a New Kind of Wrapper for Exposing LLVM (Safely)
https://thedan64.github.io/inkwell/
Apache License 2.0
2.38k stars 229 forks source link

workflows: test against LLVM 18.1 #525

Closed airwoodix closed 3 months ago

airwoodix commented 3 months ago

Description

Add a matrix entry for LLVM 18.1 in the testing workflow.

Requires updating to KyleMayes/install-llvm-action v2.0.2+. Breaking API changes from v2.0.0 are not relevant here.

Related Issue

482, https://github.com/TheDan64/inkwell/pull/524#issuecomment-2289285489

How This Has Been Tested

Checklist

TheDan64 commented 3 months ago

Changes look good to me but tests are not passing

airwoodix commented 3 months ago

I was a bit fast reading the changelog for v2.0.0 in install-llvm-action. The API changes are not breaking the use here. However, support for LLVM < 7.1 was dropped in KyleMayes/install-llvm-action#64. The limitation seems to come from older releases not being served in the llvm/llvm-project releases.

TheDan64 commented 3 months ago

Maybe we could run the old version for <7 and the new one for newer versions?

airwoodix commented 3 months ago

Done in a25308b.

uses apparently doesn't support (ternary) expressions, so the "Install LLVM and Clang" step is duplicated, with exclusive pre-conditions.