Skip to content

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #21

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #21

Workflow file for this run

name: Lidgren.Network PRs
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
env:
LIDGREN_VERSION: '2.0.0.${{ github.run_number }}'
ARTIFACT_NAME: 'Lidgren.Network.2.0.0.${{ github.run_number }}'
outputs:
artifact_name: '${{ env.ARTIFACT_NAME }}'
nupkg_base_name: 'AscensionGameDev.Lidgren.Network.${{ env.LIDGREN_VERSION }}-beta'
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.*
- name: Restore dependencies
run: dotnet restore
- id: build_debug
name: Build (Debug)
run: dotnet build --no-restore -c Debug -p:VersionPrefix=$LIDGREN_VERSION -p:VersionSuffix=beta-debug
- id: build_release
name: Build (Release)
run: dotnet build --no-restore -c Release -p:VersionPrefix=$LIDGREN_VERSION -p:VersionSuffix=beta
- name: Upload build artifacts
uses: actions/[email protected]
with:
name: '${{ env.ARTIFACT_NAME }}'
path: 'Lidgren.Network/bin/*'
if-no-files-found: error
retention-days: 1
test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- name: Tests (main)
run: dotnet test --verbosity normal