Skip to content

Remove redundant CI-step "clone"; Fix tests path; Extract entry point from test.mpl #5

Remove redundant CI-step "clone"; Fix tests path; Extract entry point from test.mpl

Remove redundant CI-step "clone"; Fix tests path; Extract entry point from test.mpl #5

Workflow file for this run

name: Build and run tests
on: [push, pull_request]
jobs:
tests:
runs-on: windows-latest
steps:
- name: сheckout
uses: actions/checkout@main
- name: make dir
run: md build
- name: download mplc
run: curl -LSs -o build/mplc.exe https://github.com/Matway/mpl-c/releases/latest/download/mplc.exe
- name: mplc
run: ./build/mplc.exe ./.github/workflows/entryPoint.mpl -I ./ -I ./tests -I ./windows -o ./build/test.ll -ndebug -D DEBUG=TRUE -linker_option /DEFAULTLIB:"ws2_32.lib"
- name: clang
run: clang ./build/test.ll -O0 -o ./build/test.exe
- name: test
run: ./build/test.exe
- name: artifacts
uses: actions/upload-artifact@main
with:
name: tests
path: |
build/*.exe
build/*.ll