]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
CI: create Github workflow to install dependencies
authorIker Pedrosa <ipedrosa@redhat.com>
Mon, 9 May 2022 14:17:57 +0000 (16:17 +0200)
committerSerge Hallyn <serge@hallyn.com>
Tue, 24 May 2022 15:55:32 +0000 (10:55 -0500)
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
.github/actions/install-dependencies/action.yml [new file with mode: 0644]

diff --git a/.github/actions/install-dependencies/action.yml b/.github/actions/install-dependencies/action.yml
new file mode 100644 (file)
index 0000000..738268f
--- /dev/null
@@ -0,0 +1,12 @@
+name: 'Install dependencies'
+description: 'Install dependencies to build shadow-utils'
+runs:
+  using: "composite"
+  steps:
+  - shell: bash
+    run: |
+      sudo apt-get update -y
+      sudo apt-get install -y ubuntu-dev-tools
+      sudo sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list
+      sudo apt-get update -y
+      sudo apt-get -y build-dep shadow