Skip to content

Updates actions

Updates actions #15

Workflow file for this run

name: Build project
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:

Check failure on line 10 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build project

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 10, Col: 3): The workflow must contain at least one job with no dependencies.
name: Build ${{ matrix.projectPath }} for ${{ matrix.targetPlatform }}
runs-on: ubuntu-latest
needs: prepareBuild
strategy:
fail-fast: false
matrix:
projectPath:
- Blocktest
- DedicatedServer
targetPlatform:
- linux-x64 # Build a macOS standalone (Intel 64-bit).
- win-x86 # Build a Windows 32-bit standalone.
- win-x64 # Build a Windows 64-bit standalone.
- osx-x64 # Build a Linux 64-bit standalone.
dotnet:
- 8.x
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
${{ matrix.dotnet }}
3.1.x
- name: Build
run: dotnet publish ${{ matrix.projectPath }} --configuration Release --runtime ${{ matrix.targetPlatform }} -p:PublishReadyToRun=false -p:TieredCompilation=false -p:PublishSingleFile=true -p:Version=$(git describe --tags) --self-contained false --output ./Build/${{ matrix.targetPlatform }}
- name: Zip build
run: |
pushd Build/${{ matrix.targetPlatform }}
zip -r ../../Blocktest-${{ matrix.targetPlatform }}-${{ matrix.dotnet }}.zip .
popd
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.projectPath }}-${{ matrix.targetPlatform }}-${{ matrix.dotnet }}
path: ./Blocktest-${{ matrix.targetPlatform }}-${{ matrix.dotnet }}.zip
compression-level: 0