Skip to content

Commit 3de4aee

Browse files
committed
CI again
1 parent f2eb870 commit 3de4aee

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
run: sudo apt-get install -y libclang-dev libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev gcc-mingw-w64-i686 gcc-mingw-w64
2020

2121
- uses: Swatinem/rust-cache@v2
22+
with:
23+
workspaces: noita-proxy -> target
2224

2325
- name: Build ewext
2426
run: cargo build --release --target i686-pc-windows-gnu

scripts/ci_make_archives.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
import tomllib
21
import os
32
from zipfile import ZipFile, ZIP_DEFLATED as COMPRESS_TYPE
43
import shutil
4+
import re
55

66
COMPRESS_LEVEL = 9
77

8-
cargo_manifest = tomllib.load(open("noita-proxy/Cargo.toml", "rb"))
9-
version = cargo_manifest["package"]["version"]
8+
cargo_manifest = open("noita-proxy/Cargo.toml", "r").read()
9+
version = re.findall('version = "(.*?)"', cargo_manifest)[0]
10+
11+
print("Version:", version)
12+
13+
assert version is not None
1014

1115
os.makedirs("target", exist_ok=True)
1216

0 commit comments

Comments
 (0)