Skip to content

Replace weapons map with weapon list #3

Replace weapons map with weapon list

Replace weapons map with weapon list #3

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
variables:
runs-on: windows-latest
outputs:
build_number: ${{ steps.get_build_num.outputs.build_number }}
steps:
- name: Generating build number
uses: actions/github-script@v7
id: get_build_num
with:
script: |
core.setOutput('build_number', "${{ github.run_id }}".substr(-4, 4));
build:
needs: [variables]
runs-on: windows-latest
env:
solution_path: build\CounterStrike2GSI.sln
build_path: build\binaries\Release\
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Generate project
run: cmake -B build/ -A x64 -D BUILD_NUMBER=${{ needs.variables.outputs.build_number }} .
- name: Restore dependencies
run: dotnet restore $env:solution_path
- name: Build
run: dotnet build $env:solution_path --no-restore -c Release
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: ${{ env.build_path }}