-
Notifications
You must be signed in to change notification settings - Fork 27
43 lines (34 loc) · 1.23 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: release
on: [push]
# on:
# push:
# tags:
# - v**
jobs:
build-and-release:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: i686-pc-windows-gnu, x86_64-pc-windows-gnu
- name: Install extra deps
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
- name: Build ewext
run: cargo build --release --target i686-pc-windows-gnu
working-directory: ./ewext
- name: Copy ewext
run: cp ewext/target/i686-pc-windows-gnu/release/ewext.dll quant.ew/ewext0.dll
- name: Build Linux proxy release
run: cargo build --release
working-directory: ./noita-proxy
- name: Build Windows proxy release
run: cargo build --release --target x86_64-pc-windows-gnu
working-directory: ./noita-proxy
- name: Create archives
run: python scripts/ci_make_archives.py
- uses: actions/upload-artifact@v4
with:
name: release
path: target/*