Skip to content

Commit

Permalink
Merge branch 'maint-3.1' into maint-3.2
Browse files Browse the repository at this point in the history
* maint-3.1:
  Don't download OpenSSL from ftp.openssl.org anyomre
  [CI] test.yml - use `bundle exec`, use setup-ruby bundler-cache
  • Loading branch information
rhenium committed Jun 8, 2024
2 parents cd76116 + e20a7b0 commit 6c723d4
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ jobs:
os: [ ubuntu-22.04, ubuntu-20.04, macos-latest, windows-latest ]
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
exclude:
# uses non-standard MSYS2 OpenSSL 3 package
- { os: windows-latest, ruby: head }
- { os: windows-latest, ruby: truffleruby }
- { os: windows-latest, ruby: truffleruby-head }
- { os: macos-latest, ruby: truffleruby }
Expand All @@ -38,9 +36,7 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}

- name: depends
run: bundle install
bundler-cache: true # `bundle install` and cache

# Enable the verbose option in mkmf.rb to print the compiling commands.
- name: enable mkmf verbose
Expand All @@ -52,10 +48,10 @@ jobs:
if: ${{ !matrix.skip-warnings }}

- name: compile
run: rake compile
run: bundle exec rake compile

- name: test
run: rake test TESTOPTS="-v --no-show-detail-immediately"
run: bundle exec rake test TESTOPTS="-v --no-show-detail-immediately"
timeout-minutes: 5

test-openssls:
Expand Down Expand Up @@ -90,8 +86,8 @@ jobs:
include:
- { os: ubuntu-latest, ruby: "3.0", openssl: openssl-3.0.10, fips-enabled: true, append-configure: 'enable-fips', name-extra: 'fips' }
- { os: ubuntu-latest, ruby: "3.0", openssl: openssl-3.1.2, fips-enabled: true, append-configure: 'enable-fips', name-extra: 'fips' }
- { os: ubuntu-latest, ruby: "3.0", openssl: openssl-head, git: 'git://git.openssl.org/openssl.git', branch: 'master' }
- { os: ubuntu-latest, ruby: "3.0", openssl: openssl-head, git: 'git://git.openssl.org/openssl.git', branch: 'master', fips-enabled: true, append-configure: 'enable-fips', name-extra: 'fips' }
- { os: ubuntu-latest, ruby: "3.0", openssl: openssl-head, git: 'https://github.com/openssl/openssl.git', branch: 'master' }
- { os: ubuntu-latest, ruby: "3.0", openssl: openssl-head, git: 'https://github.com/openssl/openssl.git', branch: 'master', fips-enabled: true, append-configure: 'enable-fips', name-extra: 'fips' }
steps:
- name: repo checkout
uses: actions/checkout@v4
Expand All @@ -104,7 +100,7 @@ jobs:
case ${{ matrix.openssl }} in
openssl-*)
if [ -z "${{ matrix.git }}" ]; then
curl -OL https://ftp.openssl.org/source/${{ matrix.openssl }}.tar.gz
curl -OL https://openssl.org/source/${{ matrix.openssl }}.tar.gz
tar xf ${{ matrix.openssl }}.tar.gz && cd ${{ matrix.openssl }}
else
git clone -b ${{ matrix.branch }} --depth 1 ${{ matrix.git }} ${{ matrix.openssl }}
Expand Down

0 comments on commit 6c723d4

Please sign in to comment.