this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

internal/ci: bump GitHub Actions OS versions

See https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
for details on the currently supported versions.
This bumps each of the three to their "latest" versions.

Change-Id: I25b22629b0301310cb0668eebf46cb5c88a83025
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/537102
Unity-Result: CUEcueckoo <cueckoo@cuelang.org>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Paul Jolly <paul@myitcv.io>

+65 -65
+1 -1
.github/workflows/release.yml
··· 7 7 - v* 8 8 jobs: 9 9 goreleaser: 10 - runs-on: ubuntu-18.04 10 + runs-on: ubuntu-20.04 11 11 defaults: 12 12 run: 13 13 shell: bash
+1 -1
.github/workflows/repository_dispatch.yml
··· 5 5 - repository_dispatch 6 6 jobs: 7 7 runtrybot: 8 - runs-on: ubuntu-18.04 8 + runs-on: ubuntu-20.04 9 9 defaults: 10 10 run: 11 11 shell: bash
+8 -8
.github/workflows/test.yml
··· 10 10 pull_request: {} 11 11 jobs: 12 12 start: 13 - runs-on: ubuntu-18.04 13 + runs-on: ubuntu-20.04 14 14 defaults: 15 15 run: 16 16 shell: bash ··· 37 37 - 1.17.x 38 38 - 1.18.x 39 39 os: 40 - - ubuntu-18.04 41 - - macos-10.15 42 - - windows-2019 40 + - ubuntu-20.04 41 + - macos-11 42 + - windows-2022 43 43 runs-on: ${{ matrix.os }} 44 44 defaults: 45 45 run: ··· 67 67 restore-keys: ${{ runner.os }}-${{ matrix.go-version }}-go- 68 68 - if: ${{ github.ref == 'refs/heads/master' }} 69 69 run: echo CUE_LONG=true >> $GITHUB_ENV 70 - - if: matrix.go-version == '1.16.x' && matrix.os == 'ubuntu-18.04' 70 + - if: matrix.go-version == '1.16.x' && matrix.os == 'ubuntu-20.04' 71 71 name: Generate 72 72 run: go generate ./... 73 73 - name: Test 74 74 run: go test ./... 75 - - if: ${{ matrix.go-version == '1.18.x' && matrix.os == 'ubuntu-18.04' }} 75 + - if: ${{ matrix.go-version == '1.18.x' && matrix.os == 'ubuntu-20.04' }} 76 76 name: Test with -race 77 77 run: go test -race ./... 78 78 - name: gorelease check ··· 90 90 name: Post any failures for this matrix entry 91 91 run: 'curl -f -s -n -H "Content-Type: application/json" --request POST --data "{\"tag\":\"trybot\",\"message\":\"Build failed for ${{ runner.os }}-${{ matrix.go-version }}; see ${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }} for more details\",\"labels\":{\"TryBot-Result\":-1}}" https://review.gerrithub.io/a/changes/$(basename $(dirname $GITHUB_REF))/revisions/$(basename $GITHUB_REF)/review' 92 92 mark_ci_success: 93 - runs-on: ubuntu-18.04 93 + runs-on: ubuntu-20.04 94 94 if: ${{ startsWith(github.ref, 'refs/heads/ci/') }} 95 95 needs: test 96 96 defaults: ··· 108 108 - name: Update Gerrit CL message with success message 109 109 run: 'curl -f -s -n -H "Content-Type: application/json" --request POST --data "{\"tag\":\"trybot\",\"message\":\"Build succeeded for ${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }}\",\"labels\":{\"TryBot-Result\":1}}" https://review.gerrithub.io/a/changes/$(basename $(dirname $GITHUB_REF))/revisions/$(basename $GITHUB_REF)/review' 110 110 delete_build_branch: 111 - runs-on: ubuntu-18.04 111 + runs-on: ubuntu-20.04 112 112 if: ${{ startsWith(github.ref, 'refs/heads/ci/') && always() }} 113 113 needs: test 114 114 defaults:
+1 -1
.github/workflows/tip_triggers.yml
··· 7 7 - master 8 8 jobs: 9 9 push: 10 - runs-on: ubuntu-18.04 10 + runs-on: ubuntu-20.04 11 11 defaults: 12 12 run: 13 13 shell: bash
+14 -14
cmd/cue/cmd/testdata/script/cmd_github.txt
··· 56 56 - v* 57 57 jobs: 58 58 goreleaser: 59 - runs-on: ubuntu-18.04 59 + runs-on: ubuntu-20.04 60 60 defaults: 61 61 run: 62 62 shell: bash ··· 98 98 - repository_dispatch 99 99 jobs: 100 100 runtrybot: 101 - runs-on: ubuntu-18.04 101 + runs-on: ubuntu-20.04 102 102 defaults: 103 103 run: 104 104 shell: bash ··· 136 136 pull_request: {} 137 137 jobs: 138 138 start: 139 - runs-on: ubuntu-18.04 139 + runs-on: ubuntu-20.04 140 140 defaults: 141 141 run: 142 142 shell: bash ··· 163 163 - 1.17.x 164 164 - 1.18.x 165 165 os: 166 - - ubuntu-18.04 167 - - macos-10.15 168 - - windows-2019 166 + - ubuntu-20.04 167 + - macos-11 168 + - windows-2022 169 169 runs-on: ${{ matrix.os }} 170 170 defaults: 171 171 run: ··· 193 193 restore-keys: ${{ runner.os }}-${{ matrix.go-version }}-go- 194 194 - if: ${{ github.ref == 'refs/heads/master' }} 195 195 run: echo CUE_LONG=true >> $GITHUB_ENV 196 - - if: matrix.go-version == '1.16.x' && matrix.os == 'ubuntu-18.04' 196 + - if: matrix.go-version == '1.16.x' && matrix.os == 'ubuntu-20.04' 197 197 name: Generate 198 198 run: go generate ./... 199 199 - name: Test 200 200 run: go test ./... 201 - - if: ${{ matrix.go-version == '1.18.x' && matrix.os == 'ubuntu-18.04' }} 201 + - if: ${{ matrix.go-version == '1.18.x' && matrix.os == 'ubuntu-20.04' }} 202 202 name: Test with -race 203 203 run: go test -race ./... 204 204 - name: gorelease check ··· 216 216 name: Post any failures for this matrix entry 217 217 run: 'curl -f -s -n -H "Content-Type: application/json" --request POST --data "{\"tag\":\"trybot\",\"message\":\"Build failed for ${{ runner.os }}-${{ matrix.go-version }}; see ${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }} for more details\",\"labels\":{\"TryBot-Result\":-1}}" https://review.gerrithub.io/a/changes/$(basename $(dirname $GITHUB_REF))/revisions/$(basename $GITHUB_REF)/review' 218 218 mark_ci_success: 219 - runs-on: ubuntu-18.04 219 + runs-on: ubuntu-20.04 220 220 if: ${{ startsWith(github.ref, 'refs/heads/ci/') }} 221 221 needs: test 222 222 defaults: ··· 234 234 - name: Update Gerrit CL message with success message 235 235 run: 'curl -f -s -n -H "Content-Type: application/json" --request POST --data "{\"tag\":\"trybot\",\"message\":\"Build succeeded for ${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }}\",\"labels\":{\"TryBot-Result\":1}}" https://review.gerrithub.io/a/changes/$(basename $(dirname $GITHUB_REF))/revisions/$(basename $GITHUB_REF)/review' 236 236 delete_build_branch: 237 - runs-on: ubuntu-18.04 237 + runs-on: ubuntu-20.04 238 238 if: ${{ startsWith(github.ref, 'refs/heads/ci/') && always() }} 239 239 needs: test 240 240 defaults: ··· 259 259 - master 260 260 jobs: 261 261 push: 262 - runs-on: ubuntu-18.04 262 + runs-on: ubuntu-20.04 263 263 defaults: 264 264 run: 265 265 shell: bash ··· 1331 1331 // Note that we don't want ".x" for the sake of reproducibility, 1332 1332 // so we instead pin a specific Go release. 1333 1333 _#pinnedReleaseGo: "1.18.1" 1334 - _#linuxMachine: "ubuntu-18.04" 1335 - _#macosMachine: "macos-10.15" 1336 - _#windowsMachine: "windows-2019" 1334 + _#linuxMachine: "ubuntu-20.04" 1335 + _#macosMachine: "macos-11" 1336 + _#windowsMachine: "windows-2022" 1337 1337 _#testStrategy: { 1338 1338 "fail-fast": false 1339 1339 matrix: {
+37 -37
cue/testdata/eval/github.txtar
··· 264 264 // Note that we don't want ".x" for the sake of reproducibility, 265 265 // so we instead pin a specific Go release. 266 266 _#pinnedReleaseGo: "1.18.1" 267 - _#linuxMachine: "ubuntu-18.04" 268 - _#macosMachine: "macos-10.15" 269 - _#windowsMachine: "windows-2019" 267 + _#linuxMachine: "ubuntu-20.04" 268 + _#macosMachine: "macos-11" 269 + _#windowsMachine: "windows-2022" 270 270 _#testStrategy: { 271 271 "fail-fast": false 272 272 matrix: { ··· 1053 1053 } 1054 1054 jobs: (#struct){ 1055 1055 start: (#struct){ 1056 - "runs-on": (string){ "ubuntu-18.04" } 1056 + "runs-on": (string){ "ubuntu-20.04" } 1057 1057 steps: (#list){ 1058 1058 0: (#struct){ 1059 1059 name: (string){ "Write netrc file for cueckoo Gerrithub" } ··· 1083 1083 2: (string){ "1.18.x" } 1084 1084 } 1085 1085 os: (#list){ 1086 - 0: (string){ "ubuntu-18.04" } 1087 - 1: (string){ "macos-10.15" } 1088 - 2: (string){ "windows-2019" } 1086 + 0: (string){ "ubuntu-20.04" } 1087 + 1: (string){ "macos-11" } 1088 + 2: (string){ "windows-2022" } 1089 1089 } 1090 1090 } 1091 1091 } ··· 1122 1122 5: (#struct){ 1123 1123 name: (string){ "Generate" } 1124 1124 run: (string){ "go generate ./..." } 1125 - if: (string){ "matrix.go-version == '1.16.x' && matrix.os == 'ubuntu-18.04'" } 1125 + if: (string){ "matrix.go-version == '1.16.x' && matrix.os == 'ubuntu-20.04'" } 1126 1126 } 1127 1127 6: (#struct){ 1128 1128 name: (string){ "Test" } ··· 1131 1131 7: (#struct){ 1132 1132 name: (string){ "Test with -race" } 1133 1133 run: (string){ "go test -race ./..." } 1134 - if: (string){ "${{ matrix.go-version == '1.18.x' && matrix.os == 'ubuntu-18.04' }}" } 1134 + if: (string){ "${{ matrix.go-version == '1.18.x' && matrix.os == 'ubuntu-20.04' }}" } 1135 1135 } 1136 1136 8: (#struct){ 1137 1137 name: (string){ "gorelease check" } ··· 1159 1159 } 1160 1160 } 1161 1161 mark_ci_success: (#struct){ 1162 - "runs-on": (string){ "ubuntu-18.04" } 1162 + "runs-on": (string){ "ubuntu-20.04" } 1163 1163 if: (string){ "${{ startsWith(github.ref, 'refs/heads/ci/') }}" } 1164 1164 needs: (string){ "test" } 1165 1165 steps: (#list){ ··· 1179 1179 } 1180 1180 } 1181 1181 delete_build_branch: (#struct){ 1182 - "runs-on": (string){ "ubuntu-18.04" } 1182 + "runs-on": (string){ "ubuntu-20.04" } 1183 1183 if: (string){ "${{ startsWith(github.ref, 'refs/heads/ci/') && always() }}" } 1184 1184 needs: (string){ "test" } 1185 1185 steps: (#list){ ··· 1285 1285 } 1286 1286 jobs: (#struct){ 1287 1287 runtrybot: (#struct){ 1288 - "runs-on": (string){ "ubuntu-18.04" } 1288 + "runs-on": (string){ "ubuntu-20.04" } 1289 1289 _#type(:ci): (string){ "runtrybot" } 1290 1290 if: (string){ "${{ github.event.client_payload.type == 'runtrybot' }}" } 1291 1291 steps: (#list){ ··· 1308 1308 _#runtrybot(:ci): (string){ "runtrybot" } 1309 1309 _#unity(:ci): (string){ "unity" } 1310 1310 _#dispatchJob(:ci): (#struct){ 1311 - "runs-on": (string){ "ubuntu-18.04" } 1311 + "runs-on": (string){ "ubuntu-20.04" } 1312 1312 _#type(:ci): (string){ string } 1313 1313 if: (_|_){ 1314 1314 // [incomplete] workflows.1.schema._#dispatchJob.if: invalid interpolation: non-concrete value string (type string): ··· 1365 1365 } 1366 1366 jobs: (#struct){ 1367 1367 goreleaser: (#struct){ 1368 - "runs-on": (string){ "ubuntu-18.04" } 1368 + "runs-on": (string){ "ubuntu-20.04" } 1369 1369 steps: (#list){ 1370 1370 0: (#struct){ 1371 1371 name: (string){ "Checkout code" } ··· 1490 1490 } 1491 1491 jobs: (#struct){ 1492 1492 push: (#struct){ 1493 - "runs-on": (string){ "ubuntu-18.04" } 1493 + "runs-on": (string){ "ubuntu-20.04" } 1494 1494 steps: (#list){ 1495 1495 0: (#struct){ 1496 1496 name: (string){ "Rebuild tip.cuelang.org" } ··· 1569 1569 } 1570 1570 jobs: (#struct){ 1571 1571 start: (#struct){ 1572 - "runs-on": (string){ "ubuntu-18.04" } 1572 + "runs-on": (string){ "ubuntu-20.04" } 1573 1573 steps: (#list){ 1574 1574 0: (#struct){ 1575 1575 name: (string){ "Write netrc file for cueckoo Gerrithub" } ··· 1599 1599 2: (string){ "1.18.x" } 1600 1600 } 1601 1601 os: (#list){ 1602 - 0: (string){ "ubuntu-18.04" } 1603 - 1: (string){ "macos-10.15" } 1604 - 2: (string){ "windows-2019" } 1602 + 0: (string){ "ubuntu-20.04" } 1603 + 1: (string){ "macos-11" } 1604 + 2: (string){ "windows-2022" } 1605 1605 } 1606 1606 } 1607 1607 } ··· 1638 1638 5: (#struct){ 1639 1639 name: (string){ "Generate" } 1640 1640 run: (string){ "go generate ./..." } 1641 - if: (string){ "matrix.go-version == '1.16.x' && matrix.os == 'ubuntu-18.04'" } 1641 + if: (string){ "matrix.go-version == '1.16.x' && matrix.os == 'ubuntu-20.04'" } 1642 1642 } 1643 1643 6: (#struct){ 1644 1644 name: (string){ "Test" } ··· 1647 1647 7: (#struct){ 1648 1648 name: (string){ "Test with -race" } 1649 1649 run: (string){ "go test -race ./..." } 1650 - if: (string){ "${{ matrix.go-version == '1.18.x' && matrix.os == 'ubuntu-18.04' }}" } 1650 + if: (string){ "${{ matrix.go-version == '1.18.x' && matrix.os == 'ubuntu-20.04' }}" } 1651 1651 } 1652 1652 8: (#struct){ 1653 1653 name: (string){ "gorelease check" } ··· 1675 1675 } 1676 1676 } 1677 1677 mark_ci_success: (#struct){ 1678 - "runs-on": (string){ "ubuntu-18.04" } 1678 + "runs-on": (string){ "ubuntu-20.04" } 1679 1679 if: (string){ "${{ startsWith(github.ref, 'refs/heads/ci/') }}" } 1680 1680 needs: (string){ "test" } 1681 1681 steps: (#list){ ··· 1695 1695 } 1696 1696 } 1697 1697 delete_build_branch: (#struct){ 1698 - "runs-on": (string){ "ubuntu-18.04" } 1698 + "runs-on": (string){ "ubuntu-20.04" } 1699 1699 if: (string){ "${{ startsWith(github.ref, 'refs/heads/ci/') && always() }}" } 1700 1700 needs: (string){ "test" } 1701 1701 steps: (#list){ ··· 1798 1798 } 1799 1799 jobs: (#struct){ 1800 1800 runtrybot: (#struct){ 1801 - "runs-on": (string){ "ubuntu-18.04" } 1801 + "runs-on": (string){ "ubuntu-20.04" } 1802 1802 _#type(:ci): (string){ "runtrybot" } 1803 1803 if: (string){ "${{ github.event.client_payload.type == 'runtrybot' }}" } 1804 1804 steps: (#list){ ··· 1821 1821 _#runtrybot(:ci): (string){ "runtrybot" } 1822 1822 _#unity(:ci): (string){ "unity" } 1823 1823 _#dispatchJob(:ci): (#struct){ 1824 - "runs-on": (string){ "ubuntu-18.04" } 1824 + "runs-on": (string){ "ubuntu-20.04" } 1825 1825 _#type(:ci): (string){ string } 1826 1826 if: (_|_){ 1827 1827 // [incomplete] repository_dispatch._#dispatchJob.if: invalid interpolation: non-concrete value string (type string): ··· 1875 1875 } 1876 1876 jobs: (#struct){ 1877 1877 goreleaser: (#struct){ 1878 - "runs-on": (string){ "ubuntu-18.04" } 1878 + "runs-on": (string){ "ubuntu-20.04" } 1879 1879 steps: (#list){ 1880 1880 0: (#struct){ 1881 1881 name: (string){ "Checkout code" } ··· 1997 1997 } 1998 1998 jobs: (#struct){ 1999 1999 push: (#struct){ 2000 - "runs-on": (string){ "ubuntu-18.04" } 2000 + "runs-on": (string){ "ubuntu-20.04" } 2001 2001 steps: (#list){ 2002 2002 0: (#struct){ 2003 2003 name: (string){ "Rebuild tip.cuelang.org" } ··· 2103 2103 _#codeGenGo(:ci): (string){ "1.16.x" } 2104 2104 _#latestStableGo(:ci): (string){ "1.18.x" } 2105 2105 _#pinnedReleaseGo(:ci): (string){ "1.18.1" } 2106 - _#linuxMachine(:ci): (string){ "ubuntu-18.04" } 2107 - _#macosMachine(:ci): (string){ "macos-10.15" } 2108 - _#windowsMachine(:ci): (string){ "windows-2019" } 2106 + _#linuxMachine(:ci): (string){ "ubuntu-20.04" } 2107 + _#macosMachine(:ci): (string){ "macos-11" } 2108 + _#windowsMachine(:ci): (string){ "windows-2022" } 2109 2109 _#testStrategy(:ci): (#struct){ 2110 2110 "fail-fast": (bool){ false } 2111 2111 matrix: (#struct){ ··· 2115 2115 2: (string){ "1.18.x" } 2116 2116 } 2117 2117 os: (#list){ 2118 - 0: (string){ "ubuntu-18.04" } 2119 - 1: (string){ "macos-10.15" } 2120 - 2: (string){ "windows-2019" } 2118 + 0: (string){ "ubuntu-20.04" } 2119 + 1: (string){ "macos-11" } 2120 + 2: (string){ "windows-2022" } 2121 2121 } 2122 2122 } 2123 2123 } ··· 2144 2144 _#goGenerate(:ci): (#struct){ 2145 2145 name: (string){ "Generate" } 2146 2146 run: (string){ "go generate ./..." } 2147 - if: (string){ "matrix.go-version == '1.16.x' && matrix.os == 'ubuntu-18.04'" } 2147 + if: (string){ "matrix.go-version == '1.16.x' && matrix.os == 'ubuntu-20.04'" } 2148 2148 } 2149 2149 _#goTest(:ci): (#struct){ 2150 2150 name: (string){ "Test" } ··· 2479 2479 _#codeGenGo: "1.16.x" 2480 2480 _#latestStableGo: "1.18.x" 2481 2481 _#pinnedReleaseGo: "1.18.1" 2482 - _#linuxMachine: "ubuntu-18.04" 2483 - _#macosMachine: "macos-10.15" 2484 - _#windowsMachine: "windows-2019" 2482 + _#linuxMachine: "ubuntu-20.04" 2483 + _#macosMachine: "macos-11" 2484 + _#windowsMachine: "windows-2022" 2485 2485 _#testStrategy: { 2486 2486 "fail-fast": false 2487 2487 matrix: {
+3 -3
internal/ci/workflows.cue
··· 341 341 // so we instead pin a specific Go release. 342 342 _#pinnedReleaseGo: "1.18.1" 343 343 344 - _#linuxMachine: "ubuntu-18.04" 345 - _#macosMachine: "macos-10.15" 346 - _#windowsMachine: "windows-2019" 344 + _#linuxMachine: "ubuntu-20.04" 345 + _#macosMachine: "macos-11" 346 + _#windowsMachine: "windows-2022" 347 347 348 348 _#testStrategy: { 349 349 "fail-fast": false