]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
CI: ruby/setup-ruby broken in GitHub container right now
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>
Thu, 13 Oct 2022 16:18:40 +0000 (17:18 +0100)
committerMatthew Newton <matthew-git@newtoncomputing.co.uk>
Thu, 13 Oct 2022 21:20:53 +0000 (22:20 +0100)
.github/actions/build-freeradius/action.yml

index 3e00a640fa56ff11e8f062a2adb3422680323bb8..5a33fde0d4597e83157b28eb72b9e62f0b02a025 100644 (file)
@@ -85,13 +85,21 @@ runs:
         sudo mk-build-deps -irt"apt-get -y --no-install-recommends" debian/control
         sudo mk-build-deps -irt"apt-get -y --no-install-recommends" scripts/ci/extra-packages.debian.control
 
+    #  Has issues in Docker container when running on GitHub...
     - uses: ruby/setup-ruby@v1
-      if: ${{ matrix.env.TEST_TYPE == 'fixtures' }}
+      if: ${{ matrix.env.TEST_TYPE == 'fixtures' && matrix.os.runs_on == 'self-hosted' }}
       with:
         ruby-version: 2.7
       env:
         ImageOS: ${{ matrix.os.imageos }}
 
+    #  ...so install from packages on GitHub
+    - name: Install ruby
+      if: ${{ matrix.env.TEST_TYPE == 'fixtures' && matrix.os.runs_on != 'self-hosted' }}
+      shell: bash
+      run: |
+        apt-get install -y --no-install-recommends ruby-dev
+
     - name: Install cassandra driver (not yet available on 20.04)
       if: ${{ matrix.os.code == 'ubuntu1804' }}
       shell: bash