-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (72 loc) · 2.22 KB
/
CI.yaml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
name: CI
on:
push:
paths:
- 'module/src/**'
- 'module/Cargo.toml'
jobs:
module-win:
name: Module Build (Windows)
runs-on: windows-latest
strategy:
matrix:
include:
- engine: hl2
target: i686-pc-windows-msvc
- engine: portal2
target: i686-pc-windows-msvc
- engine: dota2
target: i686-pc-windows-msvc
- engine: vr
target: x86_64-pc-windows-msvc
- engine: portal2_ce
target: x86_64-pc-windows-msvc
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Rustup Configuration
run: rustup target add ${{ matrix.target }}
- name: Build
run: |
cd module
cargo build --lib --release --target ${{ matrix.target }} --features ${{ matrix.engine }} --no-default-features
- name: Create Artifact
uses: actions/upload-artifact@v2-preview
with:
name: cvars-windows-${{ matrix.engine }}
path: module/target/${{ matrix.target }}/release/cvars.dll
module-lin:
name: Module Build (Linux)
runs-on: ubuntu-latest
strategy:
matrix:
include:
- engine: hl2
target: i686-unknown-linux-gnu
- engine: portal2
target: i686-unknown-linux-gnu
- engine: dota2
target: i686-unknown-linux-gnu
- engine: vr
target: x86_64-unknown-linux-gnu
- engine: portal2_ce
target: x86_64-unknown-linux-gnu
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Rustup Configuration
run: |
sudo apt-get update
sudo apt-get install gcc-multilib
rustup target add ${{ matrix.target }}
- name: Build
run: |
cd module
cargo build --lib --release --target ${{ matrix.target }} --features ${{ matrix.engine }} --no-default-features
- name: Create Artifact
uses: actions/upload-artifact@v2-preview
with:
name: cvars-linux-${{ matrix.engine }}
path: module/target/${{ matrix.target }}/release/libcvars.so