Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Commit f31f9d2

Browse files
authored
Merge pull request #1 from Source2ZE/movement-unlocker-sync
2 parents 146a779 + 14d12ac commit f31f9d2

File tree

4 files changed

+127
-4
lines changed

4 files changed

+127
-4
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
AMBuilder linguist-generated=true
2+
AMBuildScript linguist-generated=true
3+
PackageScript linguist-generated=true

.github/workflows/ci.yml

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- '*'
9+
pull_request:
10+
branches:
11+
- main
12+
13+
jobs:
14+
build:
15+
name: Build
16+
runs-on: ${{ matrix.os }}
17+
container: ${{ matrix.container }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os: [windows-2022, ubuntu-latest]
22+
include:
23+
- os: windows-2022
24+
- os: ubuntu-latest
25+
container: registry.gitlab.steamos.cloud/steamrt/sniper/platform
26+
steps:
27+
- name: Install apt packages
28+
if: runner.os == 'Linux'
29+
run: |
30+
apt update
31+
apt install -y git python3 python3-setuptools clang
32+
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
with:
36+
path: LuaUnlocker
37+
38+
- name: Checkout Metamod
39+
uses: actions/checkout@v4
40+
with:
41+
repository: alliedmodders/metamod-source
42+
ref: master
43+
path: mmsource-2.0
44+
submodules: recursive
45+
46+
- name: Checkout HL2SDK
47+
uses: actions/checkout@v4
48+
with:
49+
repository: alliedmodders/hl2sdk
50+
ref: cs2
51+
path: hl2sdk-cs2
52+
53+
- name: Checkout AMBuild
54+
uses: actions/checkout@v4
55+
with:
56+
repository: alliedmodders/ambuild
57+
path: ambuild
58+
59+
- name: Install AMBuild
60+
run: |
61+
cd ambuild && python setup.py install && cd ..
62+
63+
- name: Build
64+
working-directory: LuaUnlocker
65+
shell: bash
66+
run: |
67+
mkdir build && cd build
68+
python ../configure.py --enable-optimize --sdks cs2
69+
ambuild
70+
71+
- name: Upload artifact
72+
uses: actions/upload-artifact@v3
73+
with:
74+
name: ${{ runner.os }}
75+
path: LuaUnlocker/build/package
76+
77+
release:
78+
name: Release
79+
if: startsWith(github.ref, 'refs/tags/')
80+
needs: build
81+
runs-on: ubuntu-latest
82+
83+
steps:
84+
- name: Download artifacts
85+
uses: actions/download-artifact@v3
86+
87+
- name: Package
88+
run: |
89+
version=`echo $GITHUB_REF | sed "s/refs\/tags\///"`
90+
ls -Rall
91+
if [ -d "./Linux/" ]; then
92+
cd ./Linux/
93+
tar -czf ../${{ github.event.repository.name }}-${version}-linux.tar.gz addons
94+
cd -
95+
fi
96+
if [ -d "./Windows/" ]; then
97+
cd ./Windows/
98+
zip -r ../${{ github.event.repository.name }}-${version}-windows.zip addons
99+
cd -
100+
fi
101+
102+
- name: Release
103+
uses: svenstaro/upload-release-action@v2
104+
with:
105+
repo_token: ${{ secrets.GITHUB_TOKEN }}
106+
file: ${{ github.event.repository.name }}-*
107+
tag: ${{ github.ref }}
108+
file_glob: true

AMBuildScript

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
1-
# LuaUnlocker
1+
# Lua Unlocker
22

33
Enables the Lua VScripting language, now as a MetaMod plugin!
44

5-
Build instructions (Windows)
5+
**WARNING: Lua VScript is intentionally disabled by Valve! It is expected to be replaced by Pulse in the future, and will likely be completely removed from the game when that happens. Depend on Lua at your own risk.**
6+
7+
## Installation
8+
9+
- Install [Metamod](https://www.sourcemm.net/downloads.php?branch=dev)
10+
- Download the [latest release package](https://github.com/Source2ZE/LuaUnlocker/releases/latest) for your OS
11+
- Extract the package contents into `game/csgo` on your server
12+
13+
## Build Instructions
14+
15+
### Windows
616
```bash
717
git clone https://github.com/Source2ZE/LuaUnlocker/ && cd LuaUnlocker
818

@@ -14,7 +24,7 @@ python ../configure.py -s cs2
1424
ambuild
1525
```
1626

17-
Build instructions (Linux)
27+
### Linux
1828
```bash
1929
git clone https://github.com/Source2ZE/LuaUnlocker/ && cd LuaUnlocker
2030

0 commit comments

Comments
 (0)