Skip to content

Commit 0864bbe

Browse files
ghaithvolsa
authored andcommitted
ci
1 parent 2ea8076 commit 0864bbe

File tree

4 files changed

+20
-17
lines changed

4 files changed

+20
-17
lines changed

.github/workflows/windows.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,24 @@ jobs:
1313
build:
1414
name: Windows Build
1515
runs-on: windows-2022
16-
env:
17-
toolchain-version: 1.90.0
18-
llvm-version: 14.0.6
1916
steps:
2017

2118
- uses: actions/checkout@v3
2219

2320
- name: Install Rust
2421
uses: dtolnay/rust-toolchain@master
2522
with:
26-
toolchain: ${{ env.toolchain-version }}
23+
toolchain: 1.90.0
2724

2825
- name: Install LLVM
29-
uses: ghaith/install-llvm-action@latest
30-
with:
31-
version: ${{ env.llvm-version }}
32-
directory: "./llvm"
26+
shell: pwsh
27+
run: |
28+
$llvmUrl = "https://github.com/PLC-lang/llvm-package-windows/releases/download/v21.1.7/LLVM-21.1.7-win64.7z"
29+
$llvmArchive = "LLVM-21.1.7-win64.7z"
30+
Invoke-WebRequest -Uri $llvmUrl -OutFile $llvmArchive
31+
7z x $llvmArchive -o"./llvm" -y
32+
$llvmBin = (Resolve-Path "./llvm/bin").Path
33+
echo "$llvmBin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
3334
3435
- name: Cargo test (Unit)
3536
run: cargo test --lib -- --nocapture
@@ -47,4 +48,3 @@ jobs:
4748
with:
4849
name: plc.exe
4950
path: target/release/plc.exe
50-

Cargo.lock

Lines changed: 4 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,13 @@ members = [
8383
default-members = [".", "compiler/plc_driver", "compiler/plc_xml"]
8484

8585
[workspace.dependencies]
86+
# TODO: Version 0.7 and LLVM 21 are incompatible because of https://github.com/TheDan64/inkwell/pull/628.
87+
# We should however move to 0.8 once released, and remove the git version dependency
88+
inkwell = { git = "https://github.com/TheDan64/inkwell.git", rev = "7abf48a2cf4fc3e338fbeb1780ac7507cbb13e98", features = [
89+
"llvm21-1",
90+
] }
91+
8692
insta = { version = "1.31.0", features = ["filters"] }
87-
inkwell = { version = "0.7", features = ["llvm21-1"] }
8893
encoding_rs = "0.8"
8994
encoding_rs_io = "0.1"
9095
log = "0.4"

tests/lit/lit.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ print(f'Compile command: {compile}')
1717

1818
config.substitutions.append(('%COMPILE', f'{compile}'))
1919
config.substitutions.append(('%RUN', f'LD_LIBRARY_PATH="{stdlibLocation}/lib" /tmp/%basename_t.out'))
20-
config.substitutions.append(('%CHECK', f'FileCheck-15 --check-prefixes CHECK --allow-unused-prefixes --match-full-lines'))
20+
config.substitutions.append(('%CHECK', f'FileCheck-21 --check-prefixes CHECK --allow-unused-prefixes --match-full-lines'))

0 commit comments

Comments
 (0)