Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI Mode #36

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/firmware_workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build MMS

on:
push:
branches:
- "main"
tags:
- "*"
pull_request:

jobs:
make_gui:
runs-on: ubuntu-latest
name: GUI

steps:
- uses: actions/checkout@v3
- name: Install Deps
run: |
apt update
apt install qt5-qmake build-essential
- name: Make Bin
run: |
cd src
qmake mms.pro
make

make_cli:
runs-on: ubuntu-latest
name: CLI

steps:
- uses: actions/checkout@v2
- name: Install Deps
run: |
apt update
apt install qt5-qmake build-essential
- name: Make Bin
run: |
cd src
qmake mms-cli.pro
make
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,12 @@ Clone, build, and run the project:
# Clone the repo
git clone [email protected]:mackorone/mms.git

# Build the simulator
# Build the simulator (gui)
cd mms/src
qmake && make
qmake mms.pro && make

# (Optional) Build the simulator (cli)
qmake mms-cli.pro && make

# Run the simulator
../../bin/mms
Expand Down
23 changes: 23 additions & 0 deletions src/mms-cli.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
QT += core
QT += gui
QT += opengl
QT += widgets
QT += xml

TEMPLATE = app

CONFIG += c++11
CONFIG += debug
CONFIG += object_parallel_to_source
CONFIG += qt

SOURCES += $$files(*.cpp, true)
SOURCES -= Window.cpp
HEADERS += $$files(*.h, true)
HEADERS -= Window.h
RESOURCES = resources.qrc

DESTDIR = ../bin
MOC_DIR = ../build/moc
OBJECTS_DIR = ../build/obj
RCC_DIR = ../build/rcc
1 change: 0 additions & 1 deletion src/mms.pro
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
QT += core
QT += gui
QT += opengl
QT += openglwidgets
QT += widgets
QT += xml

Expand Down