Skip to content

Commit

Permalink
Tried fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
avighnac committed Jun 19, 2023
1 parent c4d3e79 commit 45b369d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/autorelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,13 @@ jobs:
name: arithmetica-tui-cpp
- name: Move arithmetica_tui.cpp to src
run: mv arithmetica_tui.cpp src
- name: Install nasm
run: sudo apt install nasm
- name: Install and update packages
run: |
sudo apt update
sudo apt install gcc
sudo apt install g++
sudo apt install nasm
sudo apt install valgrind
- name: Clone submodules
run: git submodule update --init --recursive
- name: Compile arithmetica-tui for Linux
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
- name: Install nasm and valgrind
run: |
sudo apt update
sudo apt install gcc
sudo apt install g++
sudo apt install nasm
sudo apt install valgrind
- name: Compile tests
Expand Down
5 changes: 3 additions & 2 deletions src/call_arithmetica_tui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,11 @@ std::string call_arithmetica_tui(std::string command) {

int pipefd[2];
#ifdef _WIN32
if (_pipe(pipefd, 4096, O_BINARY) == -1) {
if (_pipe(pipefd, 4096, O_BINARY) == -1)
#else
if (pipe(pipefd) == -1) {
if (pipe(pipefd) == -1)
#endif
{
perror("pipe");
return nullptr;
}
Expand Down

0 comments on commit 45b369d

Please sign in to comment.