-
Notifications
You must be signed in to change notification settings - Fork 14
51 lines (42 loc) · 1.08 KB
/
build.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
name: Build Test
on:
workflow_dispatch:
inputs:
name:
description: 'Log level'
required: true
default: 'warning'
jobs:
test:
name: build project
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: build_windows
run: |
$ENV:RUSTFLAGS='-C target-feature=+crt-static'
rustup target add i686-pc-windows-msvc
cargo build --release --target i686-pc-windows-msvc
shell: pwsh
- name: before_windows_upload
run: |
mkdir Release
cp target/i686-pc-windows-msvc/release/llob_install.exe Release/llob_install.exe
shell: pwsh
- name: Strip and run UPX on executables
uses: crazy-max/ghaction-upx@v3
with:
version: latest
files: |
Release/llob_install.exe
- name: upload file1
uses: actions/upload-artifact@v3
with:
name: llob_install.exe
path:
Release/llob_install.exe