mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-18 22:53:16 +00:00
CI again
This commit is contained in:
parent
f2eb870beb
commit
3de4aee5d5
2 changed files with 9 additions and 3 deletions
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -19,6 +19,8 @@ jobs:
|
|||
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
|
||||
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: noita-proxy -> target
|
||||
|
||||
- name: Build ewext
|
||||
run: cargo build --release --target i686-pc-windows-gnu
|
||||
|
|
|
@ -1,12 +1,16 @@
|
|||
import tomllib
|
||||
import os
|
||||
from zipfile import ZipFile, ZIP_DEFLATED as COMPRESS_TYPE
|
||||
import shutil
|
||||
import re
|
||||
|
||||
COMPRESS_LEVEL = 9
|
||||
|
||||
cargo_manifest = tomllib.load(open("noita-proxy/Cargo.toml", "rb"))
|
||||
version = cargo_manifest["package"]["version"]
|
||||
cargo_manifest = open("noita-proxy/Cargo.toml", "r").read()
|
||||
version = re.findall('version = "(.*?)"', cargo_manifest)[0]
|
||||
|
||||
print("Version:", version)
|
||||
|
||||
assert version is not None
|
||||
|
||||
os.makedirs("target", exist_ok=True)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue