forked from danielga/gm_luaerror
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.23 KB
/
c-cpp.yml
File metadata and controls
42 lines (40 loc) · 1.23 KB
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
name: Build
on:
push:
branches: [ master ]
jobs:
build-linux:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/checkout@v2
with:
submodules: recursive
repository: danielga/garrysmod_common
ref: x86-64-support-sourcesdk
path: 'garrysmod_common'
- name: Install Premake
run: |
wget https://github.com/premake/premake-core/releases/download/v5.0.0-beta2/premake-5.0.0-beta2-linux.tar.gz -O premake.tar.gz
sudo tar -xvf premake.tar.gz --directory=/usr/bin
sudo apt-get update
sudo apt-get install g++-multilib
gcc --version
- name: Generate Project
run: |
premake5 --gmcommon=garrysmod_common gmake
- name: Make
run: |
cd projects/linux/gmake
make
make config=releasewithsymbols_x86_64
- uses: actions/upload-artifact@v2
with:
name: gmsv_luaerror_linux.dll
path: projects/linux/gmake/x86/ReleaseWithSymbols/gmsv_luaerror_linux.dll
- uses: actions/upload-artifact@v2
with:
name: gmsv_luaerror_linux64.dll
path: projects/linux/gmake/x86_64/ReleaseWithSymbols/gmsv_luaerror_linux64.dll