mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-07-21 23:26:12 +00:00
Run CI on Ubuntu 20.04 (#8670)
This commit is contained in:
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
@ -9,7 +9,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-2019, macos-latest]
|
os: [ubuntu-20.04, windows-2019, macos-latest]
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -35,7 +35,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-2019, macos-latest]
|
os: [ubuntu-20.04, windows-2019, macos-latest]
|
||||||
steps:
|
steps:
|
||||||
- name: Restore setup
|
- name: Restore setup
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@ -61,7 +61,7 @@ jobs:
|
|||||||
|
|
||||||
build-release:
|
build-release:
|
||||||
needs: setup
|
needs: setup
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Restore setup
|
- name: Restore setup
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@ -86,7 +86,7 @@ jobs:
|
|||||||
key: ${{ github.ref }}-${{ github.sha }}-build-release
|
key: ${{ github.ref }}-${{ github.sha }}-build-release
|
||||||
|
|
||||||
build-docs:
|
build-docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -103,7 +103,7 @@ jobs:
|
|||||||
|
|
||||||
lint:
|
lint:
|
||||||
needs: setup
|
needs: setup
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Restore setup
|
- name: Restore setup
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@ -122,7 +122,7 @@ jobs:
|
|||||||
bundlemon:
|
bundlemon:
|
||||||
needs: build-release
|
needs: build-release
|
||||||
if: github.repository_owner == 'Leaflet'
|
if: github.repository_owner == 'Leaflet'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Restore release build
|
- name: Restore release build
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@ -143,7 +143,7 @@ jobs:
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
|
runs-on: ${{ matrix.os || 'ubuntu-20.04' }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -176,7 +176,7 @@ jobs:
|
|||||||
publish-artifacts:
|
publish-artifacts:
|
||||||
needs: build
|
needs: build
|
||||||
if: github.repository_owner == 'Leaflet' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
|
if: github.repository_owner == 'Leaflet' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Restore build
|
- name: Restore build
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@ -202,7 +202,7 @@ jobs:
|
|||||||
publish-npm:
|
publish-npm:
|
||||||
needs: build
|
needs: build
|
||||||
if: github.repository_owner == 'Leaflet' && startsWith(github.ref, 'refs/tags/v')
|
if: github.repository_owner == 'Leaflet' && startsWith(github.ref, 'refs/tags/v')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Restore build
|
- name: Restore build
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
|
Reference in New Issue
Block a user