-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (43 loc) · 1.08 KB
/
build_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
name: Build - Windows
on:
workflow_run:
workflows: [Checks and tests]
types:
- completed
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: windows-2022
defaults:
run:
shell: msys2 {0}
strategy:
matrix:
environment:
- msystem: MINGW64
prefix: mingw-w64-x86_64
steps:
- uses: actions/checkout@v4
- name: Prepare MSYS2 environment
uses: msys2/setup-msys2@v2
id: msys2
with:
release: false
update: true
msystem: ${{ matrix.environment.msystem }}
pacboy: >-
rust:p
SDL2:p
- name: Build release
run: cargo build --verbose --release
- name: Create packaging directory
run: mkdir snow
- name: Gather files
run: cp 'target/release/snow_frontend_tui.exe' '${{ steps.msys2.outputs.msys2-location }}/mingw64/bin/SDL2.dll' snow/
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: 'snow-windows-x64-gha${{ github.run_number }}'
if-no-files-found: error
path: snow/*