From 2b322cbef2ccc2d61e81d54246fc1c64b6178a5c Mon Sep 17 00:00:00 2001 From: William Brawner Date: Wed, 14 Aug 2024 19:10:56 -0600 Subject: [PATCH 1/3] Add Forgejo workflow --- .forgejo/workflows/test.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .forgejo/workflows/test.yml diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml new file mode 100644 index 0000000..2204bf8 --- /dev/null +++ b/.forgejo/workflows/test.yml @@ -0,0 +1,21 @@ +name: Build +on: pull_request + +jobs: + build-and-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install Dependencies + run: | + sudo apt install cmake \ + make \ + gcc \ + g++ \ + autoconf \ + libtool \ + libcurl4-openssl-dev \ + libssl-dev \ + libjson-c-dev + - name: Build + run: cmake -DPIHELPER_EXECUTABLE=BOOL:ON -B build -- 2.45.2 From 54a9b3e71b5dc9e80141a8fc7c42f12688b6a027 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Wed, 14 Aug 2024 19:25:14 -0600 Subject: [PATCH 2/3] fixup! Add Forgejo workflow --- .forgejo/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 2204bf8..4fac29b 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -18,4 +18,6 @@ jobs: libssl-dev \ libjson-c-dev - name: Build - run: cmake -DPIHELPER_EXECUTABLE=BOOL:ON -B build + run: | + cmake -DPIHELPER_EXECUTABLE=BOOL:ON -B build + cmake --build build -- 2.45.2 From 55d29e84dc2b3a17104df398a88d8dfa31b02f1e Mon Sep 17 00:00:00 2001 From: William Brawner Date: Wed, 14 Aug 2024 21:19:35 -0600 Subject: [PATCH 3/3] Fix dependency installation in workflow --- .forgejo/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 4fac29b..5acf4a6 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -8,7 +8,8 @@ jobs: - uses: actions/checkout@v4 - name: Install Dependencies run: | - sudo apt install cmake \ + sudo apt-get update + sudo apt-get install -y cmake \ make \ gcc \ g++ \ -- 2.45.2