fix datarate issue in win server #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: l4dtoolz | |
on: | |
push: | |
branches: | |
- 'main' | |
paths-ignore: | |
- '**.md' | |
- '**.yml' | |
schedule: | |
- cron: '30 03 01 */3 *' | |
workflow_dispatch: | |
jobs: | |
build_linux: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Prepare env | |
run: | | |
echo "deb http://dk.archive.ubuntu.com/ubuntu/ xenial main" | sudo tee -a /etc/apt/sources.list | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 | |
sudo dpkg --add-architecture i386 | |
sudo apt-get update | |
sudo apt install gcc-5-multilib g++-5-multilib | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 100 | |
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 100 | |
- uses: actions/checkout@v4 | |
with: | |
repository: lakwsh/hl2sdk-l4d2 | |
path: hl2sdk-l4d2 | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
path: l4dtoolz | |
- name: Build L4DToolZ | |
working-directory: l4dtoolz | |
run: make all | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: l4dtoolz-${{github.run_id}} | |
path: l4dtoolz/Release/l4dtoolz.so | |
build_windows: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: lakwsh/hl2sdk-l4d2 | |
path: hl2sdk-l4d2 | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
path: l4dtoolz | |
- name: Setup msbuild | |
uses: microsoft/setup-msbuild@v2 | |
- name: Build hl2sdk | |
working-directory: hl2sdk-l4d2 | |
run: msbuild tier1\tier1-2005.vcxproj /p:Configuration=Release /p:Platform=Win32 -maxcpucount:8 | |
- name: Build L4DToolZ | |
working-directory: l4dtoolz | |
run: msbuild l4dtoolz.vcxproj /p:Configuration=Release /p:Platform=Win32 -maxcpucount:8 | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: l4dtoolz-${{github.run_id}} | |
path: l4dtoolz/Release/l4dtoolz.dll | |
upload_files: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
sparse-checkout: | | |
README.md | |
README_EN.md | |
- name: Download vdf | |
run: wget https://oss.lakwsh.net/l4dtoolz.vdf | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: l4dtoolz-${{github.run_id}} | |
path: | | |
*.md | |
l4dtoolz.vdf |