Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #17 from FTS427/Preview
Browse files Browse the repository at this point in the history
U | PreviewUpdate
  • Loading branch information
FTS427 authored Dec 24, 2023
2 parents 1117ddb + 308055f commit dc8d3ed
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 17 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/preview-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: build-linux
run: make
working-directory: src/
run: sh ./make.sh
working-directory: /
- name: Build Preview MCT-Linux
uses: actions/upload-artifact@v3.1.2
with:
name: MCT-Pre
path: bin/MCT

path: build/MCT
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.vscode/
.vscode
build/*
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 3.9)

PROJECT(MCT)
INCLUDE_DIRECTORIES(
./src/include
)
AUX_SOURCE_DIRECTORY(src ./src)
ADD_EXECUTABLE(${PROJECT_NAME} ./src/main.cpp)
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,26 @@
[![Preview](https://img.shields.io/github/actions/workflow/status/QuantumLS-Studio/MathCentralTool/preview-build.yml?label=Preview&style=for-the-badge "Preview")](https://github.com/QuantumLS-Studio/MathCentralTool/actions/workflows/preview-build.yml)

![EMAIL](https://img.shields.io/badge/EMAIL-fts427%40outlook.com-4169E1?style=for-the-badge&logoColor=white)

</div>

[🀄简体中文](/README_zh.md) | 🔠[English](/README.md)

## 📃 Introduce

A terminal-based math tool that runs on linux.

This program is free and open source. We allow everyone to use the source code for enrichment, compilation, etc. But we don't take any responsibility for any problems!

⚠worn: This program is in developing and cannot be used for scientific precision calculations! If anything goes wrong, do so at your own risk!

## ❔ How to use
## ❔ How to use

Look in the GitAction and choose you need.

Or clone and compile by yourself.

📦 Compilation environment requirements: make, gcc
📦 Compilation environment requirements: cmake, make, gcc

## 🧑‍💻 Contribution and thanks

Expand All @@ -49,6 +50,7 @@ Or clone and compile by yourself.
Thank every developer very much for their help!👍

## 👀 Other

This project also powered by [ECCPH](https://github.com/QuantumLS-Studio/ECCPH)

Old versions[MathCentralTools](https://github.com/FTS427/MathCentralTools)(Archived🗃️)
2 changes: 1 addition & 1 deletion README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

或自行拉取编译

📦编译环境需求(Linux):make,gcc
📦编译环境需求:cmake, make,gcc

## 🧑‍💻感谢

Expand Down
Binary file removed bin/MCT
Binary file not shown.
5 changes: 5 additions & 0 deletions make.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cmake -S . -B ./build &&
cd ./build &&
make &&
echo "Done!" &&
echo "Exec -> build/MCT"
2 changes: 0 additions & 2 deletions src/Makefile

This file was deleted.

File renamed without changes.
12 changes: 6 additions & 6 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//Preview, be careful

#include "./head/mhead.h"
#include "./cpart/calc.cpp"
#include "./cpart/maxn.cpp"
#include "./cpart/minn.cpp"
#include "./cpart/chn.cpp"
#include "./cpart/cg.cpp"
#include "./include/mhead.h"
#include "./part/calc.cpp"
#include "./part/maxn.cpp"
#include "./part/minn.cpp"
#include "./part/chn.cpp"
#include "./part/cg.cpp"

//主函数
int main(){
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit dc8d3ed

Please sign in to comment.