-
Notifications
You must be signed in to change notification settings - Fork 69
47 lines (47 loc) · 1.32 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
name: Build
on: [workflow_dispatch]
jobs:
release:
environment: Production
runs-on: windows-latest
steps:
- name: Cache LLVM and Clang
id: cache-llvm
uses: actions/cache@v2
with:
path: |
C:/Program Files/LLVM
./llvm
key: llvm-11
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: "11.0"
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
- name: "Install Python"
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: "Install Rust"
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: "Cache cargo crates"
uses: Swatinem/rust-cache@v2
- name: "Checkout repo"
uses: actions/checkout@v3
- name: "Build executable"
uses: actions-rs/cargo@v1
env:
SERVER_HOSTNAME: ${{ secrets.SERVER_HOSTNAME }}
SERVER_PORT: ${{ secrets.SERVER_PORT }}
with:
command: build
args: --release --all-features
- name: Zip files
run: python scripts/build.py
- name: Upload
uses: actions/[email protected]
with:
name: YourControls
path: "scripts/out/YourControls.zip"