upd readme and workflow
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
name: Build FoxLang
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main", "master"]
|
||||
pull_request:
|
||||
branches: ["main", "master"]
|
||||
|
||||
jobs:
|
||||
# --- Сборка для Linux (Ubuntu) ---
|
||||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Compile with G++
|
||||
run: |
|
||||
g++ -std=c++17 src/main.cpp src/Lexer.cpp src/Parser.cpp -o foxlang
|
||||
|
||||
- name: Upload Linux Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: foxlang-linux
|
||||
path: foxlang
|
||||
|
||||
# --- Сборка для Windows (MSVC) ---
|
||||
build-windows:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup MSVC
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
|
||||
- name: Compile with CL (MSVC)
|
||||
# Используем флаги: /EHsc (обработка исключений), /std:c++17, /Fe (имя выходного файла)
|
||||
run: |
|
||||
cl /EHsc /std:c++17 src/main.cpp src/Lexer.cpp src/Parser.cpp /Fefoxlang.exe
|
||||
|
||||
- name: Upload Windows Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: foxlang-windows
|
||||
path: foxlang.exe
|
||||
@@ -152,13 +152,14 @@ main();
|
||||
|
||||
## 🧪 Тестирование
|
||||
|
||||
```bash
|
||||
# Тесты
|
||||
./src/foxlang test/variables.fox # Тест переменных и типов
|
||||
./src/foxlang test/functions.fox # Тест пользовательских функций
|
||||
./src/foxlang test/arrays.fox # Тест массивов
|
||||
./src/foxlang test/control_flow.fox # Тест циклов и условий
|
||||
./src/foxlang test/variables.fox # Тест переменных и типов
|
||||
./src/foxlang test/functions.fox # Тест пользовательских функций
|
||||
./src/foxlang test/arrays.fox # Тест массивов
|
||||
./src/foxlang test/control_flow.fox # Тест циклов и условий
|
||||
./src/foxlang test/math_operations.fox # Тест математических операций
|
||||
./src/foxlang test/modules.fox # Тест модульной системы
|
||||
./src/foxlang test/modules.fox # Тест модульной системы
|
||||
./src/foxlang test/builtin_functions.fox # Тест встроенных функций
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user