Skip to content

Commit

Permalink
revert LLVM 18 due to inkwell not support
Browse files Browse the repository at this point in the history
  • Loading branch information
sbwtw committed Aug 17, 2024
1 parent e05f666 commit cd10e1b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@ jobs:

- uses: KyleMayes/install-llvm-action@v1
with:
version: "18.0"
directory: ${{ runner.temp }}/llvm-18
version: "17.0"
directory: ${{ runner.temp }}/llvm-17

- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
env:
LLVM_SYS_180_PREFIX: ${{ runner.temp }}/llvm-18
LLVM_SYS_170_PREFIX: ${{ runner.temp }}/llvm-17
- name: Run tests
run: |
cargo test --verbose
env:
LLVM_SYS_180_PREFIX: ${{ runner.temp }}/llvm-18
LLVM_SYS_170_PREFIX: ${{ runner.temp }}/llvm-17
- name: Run tests with default parser
run: |
cargo test --verbose --features default_parser --no-default-features --package stc-rs
env:
LLVM_SYS_180_PREFIX: ${{ runner.temp }}/llvm-18
LLVM_SYS_170_PREFIX: ${{ runner.temp }}/llvm-17
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ log = "*"
indexmap = "*"
byteorder = "*"
uuid = { version = "*", features = ["v4", "fast-rng", "macro-diagnostics", "serde"] }
inkwell = { version = "*", optional = true, features = ["llvm18-0-no-llvm-linking"] }
inkwell = { version = "*", optional = true, features = ["llvm17-0-no-llvm-linking"] }
mlua = { version = "*", features = ["lua54", "macros", "async"], optional = true }

[dev-dependencies]
Expand All @@ -35,7 +35,7 @@ tempfile = "*"
[build-dependencies]
cbindgen = "*"
lalrpop = { version = "*", optional = true }
llvm-sys = { version = "180", optional = true, features = ["prefer-dynamic"] }
llvm-sys = { version = "170", optional = true, features = ["prefer-dynamic"] }

[features]
default = ["lua_backend", "lalrpop_parser"]
Expand Down

0 comments on commit cd10e1b

Please sign in to comment.