-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (36 loc) · 1.24 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
49
name: Linux Build CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
container: ubuntu:18.04
steps:
- uses: actions/checkout@v3
- name: Add i386 architecture
run: dpkg --add-architecture i386
- name: Update repository
run: apt-get update
- name: Install build dependencies
run: apt-get install -qq -y wget unzip build-essential gcc-4.8-multilib g++-4.8-multilib libgcc1:i386 libcurl4-openssl-dev:i386 zlib1g-dev:i386 libssl-dev:i386
- name: Update alternatives
run: update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 100 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8
- name: Run build
working-directory: ./MatchStats
run: make
- name: Move release file to publish
run: |
# Make Match Stats path
mkdir -p publish/addons/matchstats/dlls
# Move released file to dlls
mv ./MatchStats/Release/matchstats_mm.so publish/addons/matchstats/dlls
# Copy cstrike contents to publish dir
cp -ar cstrike/. publish
- name: Deploy artifacts
uses: actions/upload-artifact@v3
with:
name: matchstats-linux
path: publish/*