From 16e1851217fd111896a50cceb6dfb5d180f6882a Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Tue, 27 Aug 2024 22:29:39 -0700 Subject: [PATCH] Test with --use-system-libraries Relates to https://github.com/ueno/ruby-gpgme/pull/128 --- .github/workflows/test.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 108e306..2f3ab11 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,6 +14,10 @@ jobs: fail-fast: false matrix: ruby: ['3.3', '3.2', '3.1', '3.0', '2.7'] + use_system_libraries: [false, true] + + env: + RUBY_GPGME_USE_SYSTEM_LIBRARIES: ${{ matrix.use_system_libraries && matrix.use_system_libraries == 'true' }} steps: - uses: actions/checkout@v3 @@ -21,6 +25,10 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} + - name: Install libgpgme-dev + if: ${{ matrix.use_system_libraries }} + run: | + sudo apt install -y libgpgme-dev - name: Install dependencies run: bundle install - name: Run tests