Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): upgrade workflows running on ubuntu 22.04 to 24.04 #2259

Merged
merged 2 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ runs:
- name: Checkout sources
uses: actions/checkout@v4

- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false

- name: Prepare service account credentials
shell: bash
working-directory: mithril-infra
Expand Down Expand Up @@ -231,11 +236,6 @@ runs:
terraform fmt ./env.variables.tfvars
cat ./env.variables.tfvars

- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false

- name: Init Terraform
shell: bash
working-directory: mithril-infra
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/aggregator-stress-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ on:

jobs:
stress-test:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/backward-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ on:

jobs:
prepare-env-variables:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
outputs:
cardano_node_version: ${{ steps.set-env.outputs.cardano_node_version }}
steps:
Expand All @@ -43,7 +43,7 @@ jobs:
echo "cardano_node_version=[\"${{ inputs.cardano-node-version }}\"]" >> $GITHUB_OUTPUT

prepare-binaries:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
outputs:
tags: ${{ steps.tags-test-lab.outputs.tags }}
steps:
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
echo "tags=$TAGS" >> $GITHUB_OUTPUT

e2e:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [prepare-env-variables, prepare-binaries]
strategy:
fail-fast: false
Expand Down Expand Up @@ -198,7 +198,7 @@ jobs:
if-no-files-found: error

summarize-test-results:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [e2e]
if: success() || failure()

Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
common-build-args: ${{ matrix.common-build-args }}

build-test-wasm:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand Down Expand Up @@ -176,10 +176,10 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-14, macos-14-large, windows-latest]
os: [ubuntu-24.04, macos-14, macos-14-large, windows-latest]

include:
- os: ubuntu-22.04
- os: ubuntu-24.04
test-args: --features full,unstable --workspace
# Only test client on windows & mac (since its the only binaries supported for those os for now)
- os: macos-14
Expand Down Expand Up @@ -228,7 +228,7 @@ jobs:
path: ./test-results-*.xml

check:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand Down Expand Up @@ -289,7 +289,7 @@ jobs:
run: make check-format

e2e:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [build-ubuntu-X64]
strategy:
fail-fast: false
Expand Down Expand Up @@ -396,7 +396,7 @@ jobs:

send-tests-results:
if: success() || failure()
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs:
- test
steps:
Expand All @@ -414,7 +414,7 @@ jobs:
junit_files: ./**/test-results-*.xml

docker-mithril:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs:
- build
- check
Expand Down Expand Up @@ -488,7 +488,7 @@ jobs:
package:
[mithril-stm, mithril-build-script, mithril-common, mithril-client]

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs:
- build
- test
Expand Down Expand Up @@ -522,7 +522,7 @@ jobs:
access: public
api_token_secret_name: NPM_API_TOKEN_MITHRIL_CLIENT_WASM

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs:
- build-test-wasm
steps:
Expand All @@ -547,7 +547,7 @@ jobs:

unstable-release:
if: vars.PUBLISH_UNSTABLE_RELEASE_IN_CI == 'true' && github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith('refs/heads/hotfix', github.ref))
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs:
- build
- build-test-wasm
Expand Down Expand Up @@ -696,7 +696,7 @@ jobs:
google_compute_instance_boot_disk_size: 200
google_compute_instance_data_disk_size: 250
environment: ${{ matrix.environment }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs:
- docker-mithril
defaults:
Expand Down Expand Up @@ -761,7 +761,7 @@ jobs:
loki_ingest_password: ${{ secrets.LOKI_INGEST_PASSWORD }}

cargo-doc:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand Down Expand Up @@ -811,7 +811,7 @@ jobs:
target/doc/

build-docusaurus:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand Down Expand Up @@ -841,7 +841,7 @@ jobs:
docs/website/build/*

build-test-explorer:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: build-test-wasm
steps:
- name: Checkout sources
Expand Down Expand Up @@ -900,7 +900,7 @@ jobs:
mithril-explorer/out/*

build-open-api-ui:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand All @@ -923,7 +923,7 @@ jobs:

publish-docs:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs:
- cargo-doc
- build-docusaurus
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
nightly-docker-build:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual-publish-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- package: mithril-client
api_token_secret_name: CRATES_IO_API_TOKEN_MITHRIL_CLIENT

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
if: inputs.package == matrix.package || inputs.package == 'all'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual-publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
access: public
api_token_secret_name: NPM_API_TOKEN_MITHRIL_CLIENT_WASM

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
if: inputs.package == matrix.package || inputs.package == 'all'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly-dispatcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: ./.github/workflows/test-client.yml

notify-on-failure:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [docker-builds, aggregator-stress-test, test-client]
if: failure()
steps:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
create-pre-release:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
append_body: true

build-push-docker:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -186,7 +186,7 @@ jobs:
google_compute_instance_data_disk_size: 250
google_compute_instance_data_disk_type: pd-standard
environment: ${{ matrix.environment }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs:
- build-push-docker
defaults:
Expand Down Expand Up @@ -257,7 +257,7 @@ jobs:
package:
[mithril-stm, mithril-build-script, mithril-common, mithril-client]

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand Down Expand Up @@ -286,7 +286,7 @@ jobs:
access: public
api_token_secret_name: NPM_API_TOKEN_MITHRIL_CLIENT_WASM

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
build-push-docker:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
google_compute_instance_data_disk_type: pd-balanced

environment: ${{ matrix.environment }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs:
- build-push-docker
defaults:
Expand Down Expand Up @@ -195,7 +195,7 @@ jobs:
- package: mithril-client
api_token_secret_name: CRATES_IO_API_TOKEN_MITHRIL_CLIENT

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand Down Expand Up @@ -225,7 +225,7 @@ jobs:
access: public
api_token_secret_name: NPM_API_TOKEN_MITHRIL_CLIENT_WASM

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-14, macos-14-large, windows-latest]
os: [ubuntu-24.04, macos-14, macos-14-large, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
os: [ubuntu-24.04]
runs-on: ${{ matrix.os }}
steps:
- name: Prepare environment variables
Expand Down Expand Up @@ -300,7 +300,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
os: [ubuntu-24.04]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-deploy-network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
google_compute_instance_data_disk_type: pd-balanced

environment: ${{ matrix.environment }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
defaults:
run:
working-directory: mithril-infra
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-docker-distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ on:

jobs:
build-push-docker:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand Down