Skip to content

Commit

Permalink
Test new project
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui committed Dec 18, 2023
1 parent bc05572 commit 873b75f
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ jobs:
- name: Third Generation Build & Test
run: ./poac-out/debug/poac --verbose run --release test --verbose

- name: Create a new project with the third generation
run: ./poac-out/debug/poac new hello_world

- name: Run the new project
run: ../poac-out/debug/poac --verbose run
working-directory: hello_world

# - name: Print coverage
# if: success() && matrix.coverage == 'on'
# run: |
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ jobs:
- name: Third Generation Build & Test
run: ./poac-out/debug/poac --verbose run --release test --verbose

- name: Create a new project with the third generation
run: ./poac-out/debug/poac new hello_world

- name: Run the new project
run: ../poac-out/debug/poac --verbose run
working-directory: hello_world

# - name: Test Poac
# run: ctest --output-on-failure --verbose
# working-directory: build
1 change: 0 additions & 1 deletion hoge/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions hoge/poac.toml

This file was deleted.

5 changes: 0 additions & 5 deletions hoge/src/main.cc

This file was deleted.

4 changes: 2 additions & 2 deletions src/Cmd/New.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <fstream>
#include <iostream>

static inline constexpr StringRef mainCpp =
static inline constexpr StringRef mainCc =
"#include <iostream>\n\n"
"int main(int argc, char** argv) {\n"
" std::cout << \"Hello, world!\" << std::endl;\n"
Expand Down Expand Up @@ -50,7 +50,7 @@ static void createTemplateFiles(const bool isBin, const Path& projectName) {
fs::create_directories(projectName / "src");
writeToFile(ofs, projectName / "poac.toml", getPoacToml(projectName));
writeToFile(ofs, projectName / ".gitignore", "/poac-out");
writeToFile(ofs, projectName / "src" / "main.cpp", mainCpp);
writeToFile(ofs, projectName / "src" / "main.cc", mainCc);

Logger::status(
"Created", "binary (application) `", projectName.string(), "` package"
Expand Down

0 comments on commit 873b75f

Please sign in to comment.