Skip to content

Commit

Permalink
ci: pin to ubuntu-22.04 for now (#4942)
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi authored Oct 9, 2024
1 parent 73f8ba4 commit c246c63
Show file tree
Hide file tree
Showing 15 changed files with 73 additions and 70 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-devcontainer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
timeout-minutes: 3600
steps:
- name: 📂 Checkout code
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:

jobs:
build-web:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: 📂 Checkout code
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
path: web/website/public/

build-codemirror-demo:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: 📂 Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-megalinter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ concurrency:
jobs:
megalinter:
name: MegaLinter
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

# Give the default GITHUB_TOKEN write permission to commit and push, comment
# issues & post new PR; remove the ones you do not need
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:

jobs:
cargo-audit:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
# We can't read PRQL repo security events on forks, which causes this to
# incorrectly fail (
# https://github.com/PRQL/prql/actions/runs/5718693342/job/15495030808?pr=3195#step:3:28
Expand All @@ -44,7 +44,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

cargo-bench:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: clechasseur/rs-cargo@v2
Expand All @@ -56,7 +56,7 @@ jobs:
args: -- --warm-up-time=0.3 --measurement-time=1

time-compilation:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
matrix:
use_cache: [true, false]
Expand All @@ -74,7 +74,7 @@ jobs:
RUSTDOCFLAGS: "-Dwarnings"

check-unused-dependencies:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: 📂 Checkout code
uses: actions/checkout@v4
Expand All @@ -97,7 +97,7 @@ jobs:

# test-docker:
# # We only test the build in `test-all`; this also runs tests.
# runs-on: ubuntu-latest
# runs-on: ubuntu-22.04
# steps:
# - name: 📂 Checkout code
# uses: actions/checkout@v4
Expand All @@ -123,7 +123,7 @@ jobs:

code-ql:
# Currently almost the default code-ql config
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
actions: read
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

deploy-web:
needs: build-web
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

# Don't attempt to publish if on a fork or on a PR running on upstream.
if:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull-request-target.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:
jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
backport:
# Backport to `web` branch on `pr-backport-web`
name: Backport to `web` branch
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
# Confirm that it's merged and has a label to ensure nothing is backported without oversight
if: |
github.event.pull_request.merged
Expand All @@ -69,7 +69,7 @@ jobs:
title_template: "chore: Backport #<%= number%> to `web`"

automerge:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

permissions:
pull-requests: write
Expand Down
38 changes: 19 additions & 19 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ env:
jobs:
brew-dispatcher:
name: Release on homebrew-prql
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: github.event_name == 'release'
steps:
- uses: actions/github-script@v7
Expand All @@ -46,9 +46,9 @@ jobs:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
- os: ubuntu-22.04
target: x86_64-unknown-linux-musl
- os: ubuntu-latest
- os: ubuntu-22.04
target: aarch64-unknown-linux-musl
- os: macos-14
target: aarch64-apple-darwin
Expand Down Expand Up @@ -93,9 +93,9 @@ jobs:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
- os: ubuntu-22.04
target: x86_64-unknown-linux-musl
- os: ubuntu-latest
- os: ubuntu-22.04
target: aarch64-unknown-linux-musl
- os: macos-14
target: aarch64-apple-darwin
Expand All @@ -119,7 +119,7 @@ jobs:
files: ${{ steps.build-artifact.outputs.artifact-name }}

publish-winget:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build-prqlc
if: github.event_name == 'release'
steps:
Expand All @@ -133,7 +133,7 @@ jobs:
fork-user: prql-bot

build-deb-package:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:
files: prqlc_*.deb

build-rpm-package:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -248,7 +248,7 @@ jobs:
files: prqlc-*.rpm

build-and-publish-snap:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: ${{ github.event_name == 'release' }}
steps:
- name: 📂 Checkout code
Expand All @@ -273,7 +273,7 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-22.04, windows-latest]
package:
- prqlc-python
- lutra-python
Expand All @@ -287,16 +287,16 @@ jobs:
package: lutra-python
target: universal2-apple-darwin
# Also produce more targets for ubuntu:
- os: ubuntu-latest
- os: ubuntu-22.04
package: prqlc-python
target: aarch64
- os: ubuntu-latest
- os: ubuntu-22.04
package: prqlc-python
target: source
- os: ubuntu-latest
- os: ubuntu-22.04
package: lutra-python
target: aarch64
- os: ubuntu-latest
- os: ubuntu-22.04
package: lutra-python
target: source
steps:
Expand All @@ -309,7 +309,7 @@ jobs:
profile: release

publish-python:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [build-python-wheels]
if: github.event_name == 'release'
strategy:
Expand All @@ -332,7 +332,7 @@ jobs:
args: --skip-existing *

publish-js:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: 📂 Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -368,7 +368,7 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

publish-to-cargo:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: 📂 Checkout code
uses: actions/checkout@v4
Expand All @@ -386,7 +386,7 @@ jobs:

# Requires another pass: https://github.com/PRQL/prql/issues/850
# publish-prql-java:
# runs-on: ubuntu-latest
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
Expand All @@ -404,7 +404,7 @@ jobs:
# directory: prql-java/java/

push-web-branch:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: github.event_name == 'release'
steps:
- name: 📂 Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-dotnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:

jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: 📂 Checkout code
uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-elixir.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
inputs:
oss:
type: string
default: '["ubuntu-latest"]'
default: '["ubuntu-22.04"]'
workflow_dispatch:
inputs:
oss:
type: string
default: '["ubuntu-latest"]'
default: '["ubuntu-22.04"]'

defaults:
run:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
inputs:
oss:
type: string
default: '["ubuntu-latest"]'
default: '["ubuntu-22.04"]'
workflow_dispatch:
inputs:
oss:
type: string
default: '["ubuntu-latest"]'
default: '["ubuntu-22.04"]'

# We need consistent env vars across all workflows for the cache to work
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-js.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
inputs:
oss:
type: string
default: '["ubuntu-latest"]'
default: '["ubuntu-22.04"]'
workflow_dispatch:
inputs:
oss:
type: string
default: '["ubuntu-latest"]'
default: '["ubuntu-22.04"]'

# We need consistent env vars across all workflows for the cache to work
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-php.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-22.04]
steps:
- name: 📂 Checkout code
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-prqlc-c.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:

jobs:
test-c:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: 📂 Checkout code
uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
inputs:
oss:
type: string
default: '["ubuntu-latest"]'
default: '["ubuntu-22.04"]'
workflow_dispatch:
inputs:
oss:
type: string
default: '["ubuntu-latest"]'
default: '["ubuntu-22.04"]'

# We need consistent env vars across all workflows for the cache to work
env:
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Build wheel
uses: ./.github/actions/build-python
with:
target: ${{ matrix.os == 'ubuntu-latest' && 'x86_64' || '' }}
target: ${{ matrix.os == 'ubuntu-22.04' && 'x86_64' || '' }}
package: prqlc-python
profile: dev
- uses: actions/download-artifact@v4
Expand Down
Loading

0 comments on commit c246c63

Please sign in to comment.