@@ -22,15 +22,18 @@ jobs:
2222 buildRelease : ' Release'
2323
2424 steps :
25+ - name : Configure
26+ run : git config --global --add safe.directory "$GITHUB_WORKSPACE"
27+
2528 - name : Checkout
26- uses : actions/checkout@v3
29+ uses : actions/checkout@v4
2730 with :
2831 fetch-depth : 0
2932
3033 - name : Setup MSBuild
31- uses : microsoft/setup-msbuild@v1.1.3
34+ uses : microsoft/setup-msbuild@v2
3235 with :
33- vs-version : ' 16.8 '
36+ vs-version : ' 16'
3437
3538 - name : Build
3639 run : |
@@ -45,29 +48,38 @@ jobs:
4548 move msvc\${{ env.buildRelease }}\reapi_amxx.pdb publish\debug\reapi_amxx.pdb
4649
4750 - name : Deploy artifacts
48- uses : actions/upload-artifact@v3.1.1
51+ uses : actions/upload-artifact@v4
4952 with :
5053 name : win32
5154 path : publish/*
5255
5356 linux :
5457 name : ' Linux'
55- runs-on : ubuntu-20.04
58+ runs-on : ubuntu-24.04
59+ container : debian:11-slim
5660 outputs :
5761 app-version : ${{ steps.app-version.outputs.version }}
5862
5963 steps :
64+ - name : Check dependencies
65+ run : |
66+ dpkg --add-architecture i386
67+ apt-get update
68+ apt-get install -y \
69+ gcc-multilib g++-multilib \
70+ build-essential \
71+ libc6-dev libc6-dev-i386 \
72+ git cmake rsync \
73+ g++ gcc
74+
75+ - name : Configure
76+ run : git config --global --add safe.directory "$GITHUB_WORKSPACE"
77+
6078 - name : Checkout
61- uses : actions/checkout@v3
79+ uses : actions/checkout@v4
6280 with :
6381 fetch-depth : 0
6482
65- - name : Check dependencies
66- run : |
67- sudo dpkg --add-architecture i386
68- sudo apt-get update
69- sudo apt-get install -y gcc-multilib g++-multilib
70-
7183 - name : Build
7284 run : |
7385 rm -rf build && CC=gcc CXX=g++ cmake -B build && cmake --build build -j8
@@ -109,7 +121,7 @@ jobs:
109121 shell : bash
110122
111123 - name : Deploy artifacts
112- uses : actions/upload-artifact@v3.1.1
124+ uses : actions/upload-artifact@v4
113125 id : upload-job
114126 with :
115127 name : linux32
@@ -122,12 +134,12 @@ jobs:
122134
123135 steps :
124136 - name : Deploying linux artifacts
125- uses : actions/download-artifact@v3
137+ uses : actions/download-artifact@v4
126138 with :
127139 name : linux32
128140
129141 - name : Deploying windows artifacts
130- uses : actions/download-artifact@v3
142+ uses : actions/download-artifact@v4
131143 with :
132144 name : win32
133145
@@ -141,7 +153,7 @@ jobs:
141153 7z a -tzip reapi-bin-${{ needs.linux.outputs.app-version }}.zip addons/
142154
143155 - name : Publish artifacts
144- uses : softprops/action-gh-release@v1
156+ uses : softprops/action-gh-release@v2
145157 id : publish-job
146158 if : |
147159 startsWith(github.ref, 'refs/tags/') &&
0 commit comments