Metamod 1.12 for build

This commit is contained in:
Accelerator 2023-12-01 15:22:24 +03:00 committed by GitHub
parent b0867bb362
commit a47c6c7171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 16 deletions

View File

@ -3,11 +3,17 @@ name: l4d2-build
on: on:
push: push:
branches: branches:
- main
- master - master
tags:
- '*'
paths-ignore: paths-ignore:
- LICENSE - LICENSE
- README.md - README.md
pull_request: pull_request:
branches:
- main
- master
paths-ignore: paths-ignore:
- LICENSE - LICENSE
- README.md - README.md
@ -26,11 +32,11 @@ jobs:
- windows-latest - windows-latest
mm_version: mm_version:
- "master" - "1.12-dev"
include: include:
- mm_version: "master" - mm_version: "1.12-dev"
mm_branch: "master" mm_branch: "1.12-dev"
- os: ubuntu-latest - os: ubuntu-latest
os_short: linux os_short: linux
@ -71,7 +77,7 @@ jobs:
) )
- name: Checking out MM:Source - name: Checking out MM:Source
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
repository: alliedmodders/metamod-source repository: alliedmodders/metamod-source
ref: ${{ matrix.mm_branch }} ref: ${{ matrix.mm_branch }}
@ -80,7 +86,7 @@ jobs:
- name: Setting up Python - name: Setting up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: '3.x' python-version: '3.11'
- name: Setting up ambuild - name: Setting up ambuild
run: | run: |
@ -88,14 +94,14 @@ jobs:
pip install git+https://github.com/accelerator74/ambuild pip install git+https://github.com/accelerator74/ambuild
- name: Checking out hl2sdk-l4d2 - name: Checking out hl2sdk-l4d2
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
repository: alliedmodders/hl2sdk repository: alliedmodders/hl2sdk
ref: l4d2 ref: l4d2
path: hl2sdk-l4d2 path: hl2sdk-l4d2
- name: Checking out own repository - name: Checking out own repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
path: src path: src
@ -110,5 +116,5 @@ jobs:
- name: Uploading package - name: Uploading package
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: L4DToolZ-l4d2-${{ env.GITHUB_SHA_SHORT }} name: ${{ github.event.repository.name }}-l4d2-${{ env.GITHUB_SHA_SHORT }}
path: src/build/package path: src/build/package

View File

@ -3,11 +3,17 @@ name: l4d-build
on: on:
push: push:
branches: branches:
- main
- master - master
tags:
- '*'
paths-ignore: paths-ignore:
- LICENSE - LICENSE
- README.md - README.md
pull_request: pull_request:
branches:
- main
- master
paths-ignore: paths-ignore:
- LICENSE - LICENSE
- README.md - README.md
@ -26,11 +32,11 @@ jobs:
- windows-latest - windows-latest
mm_version: mm_version:
- "master" - "1.12-dev"
include: include:
- mm_version: "master" - mm_version: "1.12-dev"
mm_branch: "master" mm_branch: "1.12-dev"
- os: ubuntu-latest - os: ubuntu-latest
os_short: linux os_short: linux
@ -71,7 +77,7 @@ jobs:
) )
- name: Checking out MM:Source - name: Checking out MM:Source
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
repository: alliedmodders/metamod-source repository: alliedmodders/metamod-source
ref: ${{ matrix.mm_branch }} ref: ${{ matrix.mm_branch }}
@ -80,7 +86,7 @@ jobs:
- name: Setting up Python - name: Setting up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: '3.x' python-version: '3.11'
- name: Setting up ambuild - name: Setting up ambuild
run: | run: |
@ -88,14 +94,14 @@ jobs:
pip install git+https://github.com/accelerator74/ambuild pip install git+https://github.com/accelerator74/ambuild
- name: Checking out hl2sdk-l4d - name: Checking out hl2sdk-l4d
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
repository: alliedmodders/hl2sdk repository: alliedmodders/hl2sdk
ref: l4d ref: l4d
path: hl2sdk-l4d path: hl2sdk-l4d
- name: Checking out own repository - name: Checking out own repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
path: src path: src
@ -110,5 +116,5 @@ jobs:
- name: Uploading package - name: Uploading package
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: L4DToolZ-l4d-${{ env.GITHUB_SHA_SHORT }} name: ${{ github.event.repository.name }}-l4d-${{ env.GITHUB_SHA_SHORT }}
path: src/build/package path: src/build/package