2
0
mirror of https://github.com/rehlds/reapi.git synced 2025-04-08 18:40:16 +03:00

Update build.yml

This commit is contained in:
s1lentq 2025-03-28 03:25:58 +07:00
parent d0980f5854
commit 54aa276bd2

View File

@ -22,15 +22,18 @@ jobs:
buildRelease: 'Release' buildRelease: 'Release'
steps: steps:
- name: Configure
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup MSBuild - name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.1.3 uses: microsoft/setup-msbuild@v2
with: with:
vs-version: '16.8' vs-version: '16'
- name: Build - name: Build
run: | run: |
@ -45,28 +48,37 @@ jobs:
move msvc\${{ env.buildRelease }}\reapi_amxx.pdb publish\debug\reapi_amxx.pdb move msvc\${{ env.buildRelease }}\reapi_amxx.pdb publish\debug\reapi_amxx.pdb
- name: Deploy artifacts - name: Deploy artifacts
uses: actions/upload-artifact@v3.1.1 uses: actions/upload-artifact@v4
with: with:
name: win32 name: win32
path: publish/* path: publish/*
linux: linux:
name: 'Linux' name: 'Linux'
runs-on: ubuntu-20.04 runs-on: ubuntu-24.04
container: debian:11-slim
outputs: outputs:
app-version: ${{ steps.app-version.outputs.version }} app-version: ${{ steps.app-version.outputs.version }}
steps: steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check dependencies - name: Check dependencies
run: | run: |
sudo dpkg --add-architecture i386 dpkg --add-architecture i386
sudo apt-get update apt-get update
sudo apt-get install -y gcc-multilib g++-multilib apt-get install -y \
gcc-multilib g++-multilib \
build-essential \
libc6-dev libc6-dev-i386 \
git cmake rsync \
g++ gcc
- name: Configure
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build - name: Build
run: | run: |
@ -109,7 +121,7 @@ jobs:
shell: bash shell: bash
- name: Deploy artifacts - name: Deploy artifacts
uses: actions/upload-artifact@v3.1.1 uses: actions/upload-artifact@v4
id: upload-job id: upload-job
with: with:
name: linux32 name: linux32
@ -122,12 +134,12 @@ jobs:
steps: steps:
- name: Deploying linux artifacts - name: Deploying linux artifacts
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: linux32 name: linux32
- name: Deploying windows artifacts - name: Deploying windows artifacts
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: win32 name: win32
@ -141,7 +153,7 @@ jobs:
7z a -tzip reapi-bin-${{ needs.linux.outputs.app-version }}.zip addons/ 7z a -tzip reapi-bin-${{ needs.linux.outputs.app-version }}.zip addons/
- name: Publish artifacts - name: Publish artifacts
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v2
id: publish-job id: publish-job
if: | if: |
startsWith(github.ref, 'refs/tags/') && startsWith(github.ref, 'refs/tags/') &&