This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
install libgdbm and libdb in GitHub Actions
authorTomasz Konojacki <me@xenu.pl>
Wed, 13 Oct 2021 12:50:29 +0000 (14:50 +0200)
committerxenu <me@xenu.pl>
Fri, 15 Oct 2021 19:26:54 +0000 (21:26 +0200)
This ensures that DB_File and GDBM_File will be built and tested.

.github/workflows/testsuite.yml

index 809d93d..92228e7 100644 (file)
@@ -84,6 +84,10 @@ jobs:
         env:
           GITHUB_CONTEXT: ${{ toJson(github) }}
         run: echo "$GITHUB_CONTEXT"
+      - name: Install System dependencies
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y libgdbm-dev libdb-dev
       - uses: actions/checkout@v2
         with:
           fetch-depth: 0
@@ -147,6 +151,10 @@ jobs:
           - "-Dcc='clang'"
 
     steps:
+      - name: Install System dependencies
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y libgdbm-dev libdb-dev
       - uses: actions/checkout@v2
       - name: git cfg + fetch tags
         run: |
@@ -198,9 +206,8 @@ jobs:
     steps:
       - name: Install System dependencies
         run: |
-          apt-get update ||:
-          apt-get -y install build-essential git-core
-
+          apt-get update
+          apt-get install -y build-essential git-core libgdbm-dev libdb-dev
       # actions/checkout@v2 doesn't work in a container, so we use v1.
       - uses: actions/checkout@v1
       - name: fix git remote credential
@@ -239,6 +246,10 @@ jobs:
     if: needs.sanity_check.outputs.run_all_jobs == 'true'
 
     steps:
+      - name: Install System dependencies
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y libgdbm-dev libdb-dev
       - uses: actions/checkout@v2
       - name: git cfg + fetch tags
         run: |
@@ -434,7 +445,8 @@ jobs:
         run: |
           choco install cygwin --params="/InstallDir:%GITHUB_WORKSPACE%\cygwin"
           choco install cyg-get
-          cyg-get cygwin-devel gcc-core gcc gcc-g++ make cygwin64-w32api-headers binutils libtool git ccache
+          cyg-get cygwin-devel gcc-core gcc gcc-g++ make cygwin64-w32api-headers ^
+                  binutils libtool git ccache lib libgdbm-devel libdb-devel
       - name: Check out using Cygwin git, to ensure correct file permissions
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -496,6 +508,10 @@ jobs:
         env:
           GITHUB_CONTEXT: ${{ toJson(github) }}
         run: echo "$GITHUB_CONTEXT"
+      - name: Install System dependencies
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y libgdbm-dev libdb-dev
       - uses: actions/checkout@v2
       - name: git cfg + fetch tags
         run: |
@@ -544,6 +560,10 @@ jobs:
           - "-Dusethreads"
 
     steps:
+      - name: Install System dependencies
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y libgdbm-dev libdb-dev
       - uses: actions/checkout@v2
       - name: git cfg + fetch tags
         run: |
@@ -589,6 +609,10 @@ jobs:
           - "-Dusethreads -Accflags=-DPURIFY -Dcc='gcc -fsanitize=address' -Dld='gcc -fsanitize=address'"
 
     steps:
+      - name: Install System dependencies
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y libgdbm-dev libdb-dev
       - uses: actions/checkout@v2
       - name: git cfg + fetch tags
         run: |