-
Notifications
You must be signed in to change notification settings - Fork 12
48 lines (36 loc) · 1.17 KB
/
makefile.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: Linux Build CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
container: centos:7
steps:
- uses: actions/checkout@v3
- name: Update cache
run: yes | yum -y --assumeyes makecache
- name: Install build dependencies
run: yes | yum -y --assumeyes install @'Development Tools' glibc-devel.i686 libgcc.i686 libstdc++-devel.i686 wget
- name: Run build
working-directory: ./AccuracyFix
run: |
# Export compiler include path
export CPATH=$CPATH:/usr/include/c++/4.8.5/i686-redhat-linux
# Make build
make
- name: Move release file to publish
run: |
# Make Match BOT path
mkdir -p publish/addons/accuracyfix/dlls
# Move released file to dlls
mv ./AccuracyFix/Release/accuracyfix_mm.so publish/addons/accuracyfix/dlls
# Move settings file to folder
mv ./cstrike/addons/accuracyfix/accuracyfix.cfg publish/addons/accuracyfix/accuracyfix.cfg
- name: Deploy artifacts
uses: actions/upload-artifact@v3
with:
name: accuracyfix-linux
path: publish/*