Skip to content

Commit 1996c20

Browse files
committed
Added install using ci/install.sh github workflow
To ensure that these new scripts work add a test to run them. Ticket: ENT-13016 Changelog: none
1 parent 4846da6 commit 1996c20

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
uses: ./.github/workflows/unit_tests.yml
1212
shellcheck_tests:
1313
uses: ./.github/workflows/shellcheck.yml
14+
install_from_source:
15+
uses: ./.github/workflows/install_from_source.yml
1416
asan_unit_tests:
1517
needs: unit_tests
1618
uses: ./.github/workflows/asan_unit_tests.yml
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Install from source using ci/install.sh
2+
3+
on:
4+
workflow_call
5+
6+
jobs:
7+
install_from_source:
8+
name: Install using ci/install.sh
9+
runs-on: ubuntu-24.04
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
submodules: recursive
14+
- name: Install using ci/install.sh
15+
run: ci/install.sh && /var/cfengine/bin/cf-agent -V

ci/dependencies.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ if [ -f /etc/os-release ]; then
4141
echo "Unsupported version of redhat for $0"
4242
exit 1
4343
fi
44+
elif [ "$ID" = "ubuntu" ]; then
45+
sudo apt update -y
46+
sudo apt install -y libssl-dev libpam0g-dev liblmdb-dev byacc curl librsync-dev
4447
else
4548
echo "Unsupported distribution based on /etc/os-release."
4649
fi

0 commit comments

Comments
 (0)