Skip to content

Commit

Permalink
set version of Ubuntu in CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Oct 12, 2024
1 parent 99e2a4c commit daeafdd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
(github.event_name == 'schedule' && github.repository_owner == 'asciidoctor') ||
github.event_name == 'push' || github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request' && !startsWith(github.head_ref, 'docs/'))
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Proceed
run: echo ok go
lint:
needs: activate
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -44,28 +44,28 @@ jobs:
needs: lint
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-22.04, windows-latest]
ruby: [jruby-9.2.21.0, jruby-9.4.2.0, '2.7', '3.3']
asciidoctor-version: [~]
asciidoctor-diagram-version: ['~> 2.2']
asciidoctor-kroki-version: [~]
rouge-version: [~]
upstream: [~]
exclude:
# remove 3.3 on ubuntu-latest to mark as primary
- os: ubuntu-latest
# remove 3.3 on ubuntu-22.04 to mark as primary
- os: ubuntu-22.04
ruby: '3.3'
# remove 3.3 on windows-latest to lock version
- os: windows-latest
ruby: '3.3'
include:
# test oldest Ruby 3 to ensure compatibility across full range of Ruby 3 versions
- os: ubuntu-latest
- os: ubuntu-22.04
ruby: '3.0'
- os: macos-12
ruby: '3.3'
# test oldest permitted versions of dependencies
- os: ubuntu-latest
- os: ubuntu-22.04
ruby: '2.7'
asciidoctor-version: '2.0.10'
rouge-version: '~> 2.0.0'
Expand All @@ -74,13 +74,13 @@ jobs:
asciidoctor-diagram-version: ~
asciidoctor-kroki-version: '0.10.0'
# NOTE: enable once Asciidoctor 2.1.0 is released
#- os: ubuntu-latest
#- os: ubuntu-22.04
# ruby: '3.3'
# asciidoctor-version: '~> 2.0.0'
- os: ubuntu-latest
- os: ubuntu-22.04
ruby: '3.3'
upstream: upstream
- os: ubuntu-latest
- os: ubuntu-22.04
ruby: '3.3'
rouge-version: '~> 4.0.0'
primary: primary
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
bundle config --local without docs lint
echo 'COVERAGE=deep' >> $GITHUB_ENV
- name: Install Ghostscript and Poppler (Linux)
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install ghostscript poppler-utils
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ on:
required: false
jobs:
activate:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: github.repository_owner == 'asciidoctor' && github.event_name == 'workflow_dispatch'
steps:
- run: echo ok go
perform:
needs: activate
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
environment: releases
env:
ASCIIDOCTOR_DIAGRAM_VERSION: '~> 2.2'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upstream-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ permissions: read-all
jobs:
build:
name: ${{ github.event.client_payload.message }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
env:
ASCIIDOCTOR_DIAGRAM_VERSION: '~> 2.1'
PYGMENTS_VERSION: '~> 2.0'
Expand Down

0 comments on commit daeafdd

Please sign in to comment.