Skip to content

Commit

Permalink
feat: add ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmedelsa3eed committed Dec 7, 2023
1 parent 93094f7 commit 3665a4f
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 7 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Build
run: |
make build
2 changes: 1 addition & 1 deletion src/Lex/InputReader.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <Lex/InputReader.h>
#include "Utilities.h"
#include <Lex/Utilities.h>

InputReader::InputReader(std::string *rules_file_name, Rules *rules) {
this->rules = rules;
Expand Down
2 changes: 1 addition & 1 deletion src/Lex/Lex.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <Lex/Lex.h>
#include "NFAGenerator.h"
#include <Lex/NFAGenerator.h>


Lex::~Lex() {
Expand Down
4 changes: 2 additions & 2 deletions src/Lex/Rules.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <iostream>
#include <utility>
#include "Rules.h"
#include "Utilities.h"
#include "Lex/Rules.h"
#include "Lex/Utilities.h"

Rules::Rules() {
regular_expressions_map = std::unordered_map<std::string, std::pair<std::string, int>>();
Expand Down
4 changes: 2 additions & 2 deletions src/Lex/Utilities.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "Utilities.h"
#include "Operator.h"
#include "Lex/Utilities.h"
#include "Lex/Operator.h"

std::vector<SubstringInfo>
Utilities::findAllLongestSubstringIndices(std::string *input, std::set<std::string> *substrings) {
Expand Down
2 changes: 1 addition & 1 deletion src/anycc.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <iostream>
#include "Lex.h"
#include <Lex/Lex.h>


int main() {
Expand Down

0 comments on commit 3665a4f

Please sign in to comment.