Skip to content

Compile PdEdge source through PdVm.Compiler #8

Compile PdEdge source through PdVm.Compiler

Compile PdEdge source through PdVm.Compiler #8

Workflow file for this run

name: CI
on:
push:
pull_request:
permissions:
contents: read
jobs:
dotnet:
name: .NET build and tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: rustscript-clr-vm
- uses: actions/checkout@v4
with:
repository: rustscript-lang/rustscript
path: rustscript
- uses: actions/checkout@v4
with:
repository: rustscript-lang/pd-edge
path: pd-edge
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Build native compiler
working-directory: rustscript-clr-vm
run: cargo build --locked --release --manifest-path native/pd-vm-compiler/Cargo.toml
- name: Restore
working-directory: rustscript-clr-vm
run: dotnet restore pd-vm-clr.sln
- name: Build
working-directory: rustscript-clr-vm
run: dotnet build pd-vm-clr.sln --no-restore --configuration Release
- name: Tests
working-directory: rustscript-clr-vm
env:
PDVM_NATIVE_COMPILER: ${{ github.workspace }}/rustscript-clr-vm/native/pd-vm-compiler/target/release/libpd_vm_compiler.so
run: dotnet test pd-vm-clr.sln --no-build --configuration Release --verbosity normal