From 8dd566d83e1a599a443e84e85349066fab3bd610 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Sun, 25 Feb 2024 02:55:17 +0000 Subject: [PATCH 1/4] [CI] add linux build test --- .github/workflows/TestingCI.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/TestingCI.yml diff --git a/.github/workflows/TestingCI.yml b/.github/workflows/TestingCI.yml new file mode 100644 index 0000000..f232a48 --- /dev/null +++ b/.github/workflows/TestingCI.yml @@ -0,0 +1,21 @@ +name: CI + +on: [push] + +env: + CARGO_TERM_COLOR: always + +jobs: + linux-ubuntu: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Install deps + run: sudo apt-get -y install flex bison + - name: Prepare + run: ./autogen.sh && ./configure + - name: Build + run: make -s + From e254e8ed2a2139569948d7ac9c65fb217b3bae0f Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Sun, 25 Feb 2024 02:56:17 +0000 Subject: [PATCH 2/4] [CI] add autopoint dep --- .github/workflows/TestingCI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/TestingCI.yml b/.github/workflows/TestingCI.yml index f232a48..4eecb29 100644 --- a/.github/workflows/TestingCI.yml +++ b/.github/workflows/TestingCI.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Install deps - run: sudo apt-get -y install flex bison + run: sudo apt-get -y install flex bison autopoint - name: Prepare run: ./autogen.sh && ./configure - name: Build From 4f2a987abde0d6518eab795f8ef7b59c1ffd08c2 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Sun, 25 Feb 2024 02:57:40 +0000 Subject: [PATCH 3/4] [CI] add gettext dep --- .github/workflows/TestingCI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/TestingCI.yml b/.github/workflows/TestingCI.yml index 4eecb29..6b7996d 100644 --- a/.github/workflows/TestingCI.yml +++ b/.github/workflows/TestingCI.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Install deps - run: sudo apt-get -y install flex bison autopoint + run: sudo apt-get -y install flex bison autopoint gettext - name: Prepare run: ./autogen.sh && ./configure - name: Build From 5ac467db3754e5af365649ac14598abe25760614 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Sun, 25 Feb 2024 02:59:23 +0000 Subject: [PATCH 4/4] expr/expr.cc: build fix with modern bison yylval --- expr/expr.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/expr/expr.cc b/expr/expr.cc index 9459620..3412c8f 100644 --- a/expr/expr.cc +++ b/expr/expr.cc @@ -55,7 +55,9 @@ enum token_type { }; extern "C" { +#if 0 long long yylval = 0; +#endif #define YYSTYPE long long #include "expr-parse.h"