Skip to content

C# Compiler

C# Compiler #75

Workflow file for this run

name: Build Compiler
on:
push:
branches: [ master ]
paths: ["src/**", ".github/workflows/build.yaml"]
pull_request:
paths: ["src/**", ".github/workflows/build.yaml"]
workflow_call:
outputs:
artifact:
value: ${{ github.inputs.artifact }}
description: 'The artifact that was built'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Setup DotNet
uses: actions/setup-dotnet@v4
with:
cache: true
dotnet-version: 9.0.x
cache-dependency-path: "src/Compiler/packages.lock.json"
- name: Install dependencies
run: dotnet restore --locked-mode -r win-x64
- name: Build
run: dotnet publish ./src/Compiler/Compiler.csproj --sc -c Release -r win-x64
- uses: actions/upload-artifact@v4
with:
name: Compiler
path: ./src/Compiler/bin/Release/win-x64/publish/Compiler.exe