Skip to content

Commit de396ba

Browse files
authored
default ubuntu-latest to ubuntu-20.04 (#1157)
Change the usage of GHA runners from ubuntu-latest to ubuntu-20.04. The shift of GHA to point ubuntu-latest to `ubuntu-22.04' (citation) has caused issues
1 parent b55178c commit de396ba

10 files changed

+58
-58
lines changed

.github/workflows/android.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ concurrency:
2121

2222
jobs:
2323
prepare_matrix:
24-
runs-on: ubuntu-latest
24+
runs-on: ubuntu-20.04
2525
outputs:
2626
matrix_os: ${{ steps.export-result.outputs.matrix_os }}
2727
matrix_architecture: ${{ steps.export-result.outputs.matrix_architecture }}

.github/workflows/checks.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ concurrency:
1717

1818
jobs:
1919
file_format_check:
20-
runs-on: ubuntu-latest
20+
runs-on: ubuntu-20.04
2121
steps:
2222
- uses: actions/checkout@v3
2323
with:
@@ -40,7 +40,7 @@ jobs:
4040

4141
check_integration_test_labels:
4242
# This check fails if integration tests are queued, in progress, or failed.
43-
runs-on: ubuntu-latest
43+
runs-on: ubuntu-20.04
4444
steps:
4545
- uses: docker://agilepathway/pull-request-label-checker:latest
4646
with:
@@ -49,7 +49,7 @@ jobs:
4949

5050
generated_docs_check:
5151
# This check succeeds if Doxygen documentation generates without errors.
52-
runs-on: ubuntu-latest
52+
runs-on: ubuntu-20.04
5353
steps:
5454
- uses: actions/checkout@v3
5555
with:
@@ -88,7 +88,7 @@ jobs:
8888
8989
copyright_check:
9090
# Check for Google copyright in each file.
91-
runs-on: ubuntu-latest
91+
runs-on: ubuntu-20.04
9292
steps:
9393
- uses: actions/checkout@v3
9494
with:
@@ -100,7 +100,7 @@ jobs:
100100
101101
release_notes_check:
102102
# Check that the readme was updated, unless the PR has a specific label set (env.skipReleaseNotesLabel).
103-
runs-on: ubuntu-latest
103+
runs-on: ubuntu-20.04
104104
steps:
105105
- uses: actions/checkout@v3
106106
# Skip this if the PR has the skipReleaseNotes label or if it's a merge to other than main.

.github/workflows/checks_secure.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212
jobs:
1313
dismiss_stale_approvals:
1414
# Dismiss stale approvals for non-admins or if this PR comes from a fork.
15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-20.04
1616
# Only if another commit was added to the PR.
1717
steps:
1818
- name: Check user permission

.github/workflows/cpp-packaging.yml

+23-23
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ env:
4242
jobs:
4343
log_inputs:
4444
name: log-inputs
45-
runs-on: ubuntu-latest
45+
runs-on: ubuntu-20.04
4646
steps:
4747
- name: log run inputs
4848
run: |
@@ -79,9 +79,9 @@ jobs:
7979
if: ${{ github.event.inputs.downloadPublicVersion == '' && github.event.inputs.downloadPreviousRun == '' }}
8080
strategy:
8181
matrix:
82-
os: [ubuntu-latest, macos-12]
82+
os: [ubuntu-20.04, macos-12]
8383
include:
84-
- os: ubuntu-latest
84+
- os: ubuntu-20.04
8585
tools_platform: linux
8686
# Binutils 2.35.1 released Sep 19, 2020
8787
binutils_version: "2.35.1"
@@ -243,7 +243,7 @@ jobs:
243243

244244
build_and_package_android:
245245
name: build-and-package-android
246-
runs-on: ubuntu-latest
246+
runs-on: ubuntu-20.04
247247
if: ${{ github.event.inputs.downloadPublicVersion == '' && github.event.inputs.downloadPreviousRun == '' }}
248248
strategy:
249249
fail-fast: false
@@ -305,7 +305,7 @@ jobs:
305305
strategy:
306306
fail-fast: false
307307
matrix:
308-
os: [windows-latest, ubuntu-latest, macos-12]
308+
os: [windows-latest, ubuntu-20.04, macos-12]
309309
build_type: ["Release", "Debug"]
310310
architecture: ["x64", "x86", "arm64"]
311311
msvc_runtime: ["static", "dynamic"]
@@ -321,7 +321,7 @@ jobs:
321321
vcpkg_triplet_suffix: "windows-static-md"
322322
additional_build_flags: "--build_tests"
323323
sdk_platform: "windows"
324-
- os: ubuntu-latest
324+
- os: ubuntu-20.04
325325
vcpkg_triplet_suffix: "linux"
326326
additional_build_flags: ""
327327
sdk_platform: "linux"
@@ -341,11 +341,11 @@ jobs:
341341
linux_abi: "c++11"
342342
- os: macos-12
343343
build_type: "Debug"
344-
- os: ubuntu-latest
344+
- os: ubuntu-20.04
345345
msvc_runtime: "dynamic"
346-
- os: ubuntu-latest
346+
- os: ubuntu-20.04
347347
build_type: "Debug"
348-
- os: ubuntu-latest
348+
- os: ubuntu-20.04
349349
architecture: "arm64"
350350
- os: windows-latest
351351
architecture: "arm64"
@@ -464,40 +464,40 @@ jobs:
464464
matrix:
465465
sdk_platform: [linux, darwin, windows]
466466
suffix: ['']
467-
runs_on_platform: [ubuntu-latest]
467+
runs_on_platform: [ubuntu-20.04]
468468
include:
469469
# Split windows packaging into multiple runners.
470470
- sdk_platform: windows
471471
suffix: '-x86-Release-static'
472-
runs_on_platform: ubuntu-latest
472+
runs_on_platform: ubuntu-20.04
473473
- sdk_platform: windows
474474
suffix: '-x86-Release-dynamic'
475-
runs_on_platform: ubuntu-latest
475+
runs_on_platform: ubuntu-20.04
476476
- sdk_platform: windows
477477
suffix: '-x64-Release-static'
478-
runs_on_platform: ubuntu-latest
478+
runs_on_platform: ubuntu-20.04
479479
- sdk_platform: windows
480480
suffix: '-x64-Release-dynamic'
481-
runs_on_platform: ubuntu-latest
481+
runs_on_platform: ubuntu-20.04
482482
- sdk_platform: windows
483483
suffix: '-x86-Debug-static'
484-
runs_on_platform: ubuntu-latest
484+
runs_on_platform: ubuntu-20.04
485485
- sdk_platform: windows
486486
suffix: '-x86-Debug-dynamic'
487-
runs_on_platform: ubuntu-latest
487+
runs_on_platform: ubuntu-20.04
488488
- sdk_platform: windows
489489
suffix: '-x64-Debug-static'
490-
runs_on_platform: ubuntu-latest
490+
runs_on_platform: ubuntu-20.04
491491
- sdk_platform: windows
492492
suffix: '-x64-Debug-dynamic'
493-
runs_on_platform: ubuntu-latest
493+
runs_on_platform: ubuntu-20.04
494494
- sdk_platform: darwin
495495
runs_on_platform: macos-12
496496
exclude:
497497
- sdk_platform: windows
498498
suffix: ''
499499
- sdk_platform: darwin
500-
runs_on_platform: ubuntu-latest
500+
runs_on_platform: ubuntu-20.04
501501
steps:
502502
- name: setup Xcode version (macos)
503503
if: runner.os == 'macOS'
@@ -649,7 +649,7 @@ jobs:
649649

650650
download_sdk_package:
651651
name: download-sdk-package
652-
runs-on: ubuntu-latest
652+
runs-on: ubuntu-20.04
653653
needs: [log_inputs]
654654
if: ${{ github.event.inputs.downloadPublicVersion != '' || github.event.inputs.downloadPreviousRun != '' }}
655655
steps:
@@ -699,7 +699,7 @@ jobs:
699699

700700
merge_packages:
701701
name: final-merge-packages
702-
runs-on: ubuntu-latest
702+
runs-on: ubuntu-20.04
703703
if: ${{ github.event.inputs.downloadPublicVersion == '' && github.event.inputs.downloadPreviousRun == '' }}
704704
needs: [build_and_package_ios_tvos, build_and_package_android, package_desktop, log_inputs]
705705
steps:
@@ -763,7 +763,7 @@ jobs:
763763
# Clean up intermediate artifacts from packaging step.
764764
# This can happen after the final package merge is finished.
765765
name: cleanup-packaging-artifacts
766-
runs-on: ubuntu-latest
766+
runs-on: ubuntu-20.04
767767
needs: [merge_packages]
768768
if: |
769769
(
@@ -784,7 +784,7 @@ jobs:
784784
# Trigger the integration_tests workflow.
785785
needs: [merge_packages, download_sdk_package, cleanup_packaging_artifacts]
786786
if: (github.event.inputs.skipIntegrationTests == 0 || github.event.inputs.skipIntegrationTests == '') && !cancelled() && !failure()
787-
runs-on: ubuntu-latest
787+
runs-on: ubuntu-20.04
788788
steps:
789789
- name: Checkout repo
790790
uses: actions/checkout@v3

.github/workflows/desktop.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ concurrency:
2020

2121
jobs:
2222
prepare_matrix:
23-
runs-on: ubuntu-latest
23+
runs-on: ubuntu-20.04
2424
outputs:
2525
matrix_os: ${{ steps.export-result.outputs.matrix_os }}
2626
matrix_build_type: ${{ steps.export-result.outputs.matrix_build_type }}
@@ -70,24 +70,24 @@ jobs:
7070
msvc_runtime: "dynamic"
7171
exclude:
7272
# msvc_runtime excludes
73-
- os: ubuntu-latest
73+
- os: ubuntu-20.04
7474
msvc_runtime: "dynamic"
7575
- os: macos-12
7676
msvc_runtime: "dynamic"
7777
# architecture excluees
7878
- os: macos-12
7979
architecture: "x86"
8080
# Xcode excludes -- allow only one on osx and linux
81-
- os: ubuntu-latest
81+
- os: ubuntu-20.04
8282
xcode_version: "11.7"
8383
- os: windows-latest
8484
xcode_version: "11.7"
85-
- os: ubuntu-latest
85+
- os: ubuntu-20.04
8686
xcode_version: "12.5.1"
8787
- os: windows-latest
8888
xcode_version: "12.5.1"
8989
# arm64 is only for macos
90-
- os: ubuntu-latest
90+
- os: ubuntu-20.04
9191
architecture: "arm64"
9292
- os: windows-latest
9393
architecture: "arm64"
@@ -292,7 +292,7 @@ jobs:
292292
### It's possible to add more apps here once integration tests are less flaky.
293293
name: local-integration-tests-linux-openssl
294294
needs: prepare_matrix
295-
runs-on: ubuntu-latest
295+
runs-on: ubuntu-20.04
296296
strategy:
297297
fail-fast: false
298298
steps:
@@ -331,15 +331,15 @@ jobs:
331331
python scripts/gha/build_testapps.py --p Desktop \
332332
--t ${apis} \
333333
--output_directory "${{ github.workspace }}" \
334-
--artifact_name "desktop-ubuntu-latest-openssl" \
334+
--artifact_name "desktop-ubuntu-20.04-openssl" \
335335
--noadd_timestamp \
336336
--short_output_paths \
337337
--cmake_flag=-DFIREBASE_QUICK_TEST=ON
338338
- name: Summarize build results
339339
if: ${{ !cancelled() }}
340340
shell: bash
341341
run: |
342-
cat build-results-desktop-ubuntu-latest-openssl.log
342+
cat build-results-desktop-ubuntu-20.04-openssl.log
343343
if [[ "${{ job.status }}" != "success" ]]; then
344344
exit 1
345345
fi
@@ -361,15 +361,15 @@ jobs:
361361
java-version: '17'
362362
- name: Run Desktop integration tests
363363
run: |
364-
cp scripts/gha/integration_testing/google-services.json testapps-desktop-ubuntu-latest-openssl/firestore/google-services.json
365-
firebase emulators:exec --only firestore --project demo-example 'python scripts/gha/desktop_tester.py --testapp_dir testapps-desktop-ubuntu-latest-openssl --logfile_name "desktop-ubuntu-latest-openssl"'
364+
cp scripts/gha/integration_testing/google-services.json testapps-desktop-ubuntu-20.04-openssl/firestore/google-services.json
365+
firebase emulators:exec --only firestore --project demo-example 'python scripts/gha/desktop_tester.py --testapp_dir testapps-desktop-ubuntu-20.04-openssl --logfile_name "desktop-ubuntu-20.04-openssl"'
366366
env:
367367
USE_FIRESTORE_EMULATOR: true
368368
- name: Summarize test results
369369
if: ${{ !cancelled() }}
370370
shell: bash
371371
run: |
372-
cat testapps-desktop-ubuntu-latest-openssl/test-results-desktop-ubuntu-latest-openssl.log
372+
cat testapps-desktop-ubuntu-20.04-openssl/test-results-desktop-ubuntu-20.04-openssl.log
373373
if [[ "${{ job.status }}" != "success" ]]; then
374374
exit 1
375375
fi

.github/workflows/integration_tests.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020
required: true
2121
operating_systems:
2222
description: 'CSV of VMs to run on'
23-
default: 'ubuntu-latest,windows-latest,macos-12'
23+
default: 'ubuntu-20.04,windows-latest,macos-12'
2424
required: true
2525
desktop_ssl_variants:
2626
description: 'CSV of desktop SSL variants to use'
@@ -55,7 +55,7 @@ env:
5555

5656
jobs:
5757
check_and_prepare:
58-
runs-on: ubuntu-latest
58+
runs-on: ubuntu-20.04
5959
outputs:
6060
trigger: ${{ steps.set_outputs.outputs.trigger }}
6161
github_ref: ${{ steps.set_outputs.outputs.github_ref }}
@@ -250,7 +250,7 @@ jobs:
250250
# Do not attempt to use arm64 on Windows or Linux.
251251
- os: windows-latest
252252
arch: arm64
253-
- os: ubuntu-latest
253+
- os: ubuntu-20.04
254254
arch: arm64
255255
# Do not attempt to use x86 on Mac.
256256
- os: macos-12
@@ -698,7 +698,7 @@ jobs:
698698
# Do not attempt to use arm64 on Windows or Linux.
699699
- os: windows-latest
700700
arch: arm64
701-
- os: ubuntu-latest
701+
- os: ubuntu-20.04
702702
arch: arm64
703703
# Do not attempt to use x86 on Mac.
704704
- os: macos-12
@@ -817,7 +817,7 @@ jobs:
817817
runner_label: ['${{ needs.check_and_prepare.outputs.runner_label_macos_arm64 }}']
818818
exclude:
819819
# Don't run Linux or Windows tests on the Mac arm64 runner.
820-
- os: ubuntu-latest
820+
- os: ubuntu-20.04
821821
runner_label: ${{ needs.check_and_prepare.outputs.runner_label_macos_arm64 }}
822822
- os: windows-latest
823823
runner_label: ${{ needs.check_and_prepare.outputs.runner_label_macos_arm64 }}
@@ -1318,7 +1318,7 @@ jobs:
13181318
summarize_results:
13191319
name: "summarize-results"
13201320
needs: [check_and_prepare, test_desktop, test_desktop_custom_runners, test_android, test_ios, test_tvos]
1321-
runs-on: ubuntu-latest
1321+
runs-on: ubuntu-20.04
13221322
if: ${{ !cancelled() }}
13231323
steps:
13241324
- uses: actions/checkout@v3

.github/workflows/ios.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919

2020
jobs:
2121
prepare_matrix:
22-
runs-on: ubuntu-latest
22+
runs-on: ubuntu-20.04
2323
outputs:
2424
matrix_xcode_version: ${{ steps.export-result.outputs.matrix_xcode_version }}
2525
steps:

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ concurrency:
1010

1111
jobs:
1212
lint_warnings_check_and_comment:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-20.04
1414
steps:
1515
- uses: actions/checkout@v3
1616
with:

.github/workflows/reviewer-roulette.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
jobs:
1111
assign_random_reviewer:
1212
if: github.event.action == 'labeled' && github.event.label.name == 'reviewer-roulette'
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-20.04
1414
steps:
1515
- name: Unset label
1616
uses: buildsville/add-remove-label@v1

0 commit comments

Comments
 (0)