-
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (59 loc) · 1.86 KB
/
windows.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
on:
push:
branches:
- 'master'
name: 'Build: Windows (x86_64)'
jobs:
windows_x86-64:
name: Windows (x86_64)
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: "MINGW64: Install, setup, and switch to"
uses: msys2/setup-msys2@v2
with:
update: true
install: >-
git
base-devel
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-meson
mingw-w64-x86_64-pkg-config
mingw-w64-x86_64-openssl
- name: Setup environment variables
run: |
echo "../../_temp/msys/msys64/mingw64/bin" >> $GITHUB_PATH
LIBRARY_PATH="../../_temp/msys/msys64/mingw64/bin"
GTK_LIB_DIR="../../_temp/msys/msys64/mingw64/bin" PKG_CONFIG_ALLOW_CROSS=1
PKG_CONFIG="../../_temp/msys/msys64/mingw64/bin" PKG_CONFIG_ALLOW_CROSS=1
source ~/.bashrc
- name: Checkout codebase
uses: actions/checkout@v3
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-gnu
target: x86_64-pc-windows-gnu
default: true
profile: minimal
- name: Build Vaultist
uses: actions-rs/cargo@v1
with:
command: build
args: --release --target x86_64-pc-windows-gnu
- name: Prepare Vaultist for upload
run: |
cd ./target/x86_64-pc-windows-gnu/release/
tar -czvf x86_64-vaultist.win32.zip \
vaultist.exe \
vaultist.dll \
libvaultist.a \
libvaultist.dll.a
- name: Upload Vaultist build artifacts to GitHub
uses: actions/upload-artifact@v3
with:
name: x86_64-vaultist.win32
path: ./target/x86_64-pc-windows-gnu/release/x86_64-vaultist.win32.zip
if-no-files-found: error