Skip to content
Merged
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
25 changes: 25 additions & 0 deletions .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,28 @@ jobs:
run: ctest --test-dir build --output-on-failure
- name: Run acceptance tests
run: bash scripts/run_examples.sh build/bin/bloch

debug-build:
name: Debug Build Check for Release
if: startsWith(github.head_ref, 'release-please-')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake g++ libssl-dev pkg-config

- name: Configure CMake (Debug)
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug

- name: Build
run: cmake --build build --parallel

- name: Run unit and integration tests
run: ctest --test-dir build --output-on-failure

- name: Run acceptance tests
run: bash scripts/run_examples.sh build/bin/bloch
1 change: 0 additions & 1 deletion src/bloch/cli/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ namespace bloch::cli {
bool shotsProvided = false;
bool isCliShots = false;
int cliShots = 1;
bool isAnnotationShots = false;
std::string echoOpt;
std::string file;

Expand Down
2 changes: 1 addition & 1 deletion src/bloch/compiler/semantics/semantic_analyser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3083,7 +3083,7 @@ namespace bloch::compiler {
}
}

void SemanticAnalyser::visit(Program& node) {
void SemanticAnalyser::visit(Program&) {
// handled in analyse
}

Expand Down
2 changes: 1 addition & 1 deletion src/bloch/runtime/runtime_evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2219,7 +2219,7 @@ namespace bloch::runtime {
"unsupported array literal type");
}
return v;
} else if (auto thisExpr = dynamic_cast<ThisExpression*>(e)) {
} else if (dynamic_cast<ThisExpression*>(e)) {
return lookup("this");
} else if (auto superExpr = dynamic_cast<SuperExpression*>(e)) {
(void)superExpr;
Expand Down
2 changes: 1 addition & 1 deletion tests/test_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ TEST(ParserTest, EmptyTypeArgumentListOutsideNewFails) {
Lexer lexer(src);
auto tokens = lexer.tokenize();
Parser parser(std::move(tokens));
EXPECT_THROW(parser.parse(), BlochError);
EXPECT_THROW((void)parser.parse(), BlochError);
}

TEST(ParserTest, ParseArrayTypesAndIndexing) {
Expand Down
Loading