Use fixed OS versions
This commit is contained in:
parent
a92ea403e8
commit
518cf35935
|
@ -9,7 +9,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
bench:
|
bench:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
|
|
|
@ -12,17 +12,17 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
os: [macos-11.0, ubuntu-18.04, windows-2019]
|
||||||
include:
|
include:
|
||||||
- os: macos-latest
|
- os: macos-11.0
|
||||||
ARCH: macos-x86_64
|
ARCH: macos-x86_64
|
||||||
MIME: application/octet-stream
|
MIME: application/octet-stream
|
||||||
EXT: ''
|
EXT: ''
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-18.04
|
||||||
ARCH: linux-x86_64
|
ARCH: linux-x86_64
|
||||||
MIME: application/octet-stream
|
MIME: application/octet-stream
|
||||||
EXT: ''
|
EXT: ''
|
||||||
- os: windows-latest
|
- os: windows-2019
|
||||||
ARCH: windows-x86_64
|
ARCH: windows-x86_64
|
||||||
MIME: application/vnd.microsoft.portable-executable
|
MIME: application/vnd.microsoft.portable-executable
|
||||||
EXT: '.exe'
|
EXT: '.exe'
|
||||||
|
|
|
@ -12,15 +12,15 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
os: [macos-11.0, ubuntu-18.04, windows-2019]
|
||||||
include:
|
include:
|
||||||
- os: macos-latest
|
- os: macos-11.0
|
||||||
ARCH: macos-x86_64
|
ARCH: macos-x86_64
|
||||||
FILE: 'libminify_html_java.dylib'
|
FILE: 'libminify_html_java.dylib'
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-18.04
|
||||||
ARCH: linux-x86_64
|
ARCH: linux-x86_64
|
||||||
FILE: 'libminify_html_java.so'
|
FILE: 'libminify_html_java.so'
|
||||||
- os: windows-latest
|
- os: windows-2019
|
||||||
ARCH: windows-x86_64
|
ARCH: windows-x86_64
|
||||||
FILE: 'minify_html_java.dll'
|
FILE: 'minify_html_java.dll'
|
||||||
steps:
|
steps:
|
||||||
|
@ -56,7 +56,7 @@ jobs:
|
||||||
name: ${{ matrix.ARCH }}
|
name: ${{ matrix.ARCH }}
|
||||||
path: ./java/target/rust/release/${{ matrix.FILE }}
|
path: ./java/target/rust/release/${{ matrix.FILE }}
|
||||||
package:
|
package:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-18.04
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
|
@ -12,13 +12,13 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
feature: [core, js]
|
feature: [core, js]
|
||||||
os: [macos-11.0, ubuntu-latest, windows-latest]
|
os: [macos-11.0, ubuntu-18.04, windows-2019]
|
||||||
include:
|
include:
|
||||||
- os: macos-11.0
|
- os: macos-11.0
|
||||||
ARCH: macos-x86_64
|
ARCH: macos-x86_64
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-18.04
|
||||||
ARCH: linux-x86_64
|
ARCH: linux-x86_64
|
||||||
- os: windows-latest
|
- os: windows-2019
|
||||||
ARCH: windows-x86_64
|
ARCH: windows-x86_64
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
|
@ -76,7 +76,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
feature: [core, js]
|
feature: [core, js]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-18.04
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
|
@ -12,7 +12,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
feature: [core, js]
|
feature: [core, js]
|
||||||
os: [macos-11.0, ubuntu-latest, windows-latest]
|
os: [macos-11.0, ubuntu-20.04, windows-2019]
|
||||||
python: [3.7, 3.8, 3.9]
|
python: [3.7, 3.8, 3.9]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -12,13 +12,13 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest]
|
os: [ubuntu-18.04, macos-11.0]
|
||||||
ruby: [2.5.7, 2.6.5, 2.7.0]
|
ruby: [2.5.7, 2.6.5, 2.7.0]
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-18.04
|
||||||
NAME: linux
|
NAME: linux
|
||||||
FILE: 'libminify_html_ruby_lib.so'
|
FILE: 'libminify_html_ruby_lib.so'
|
||||||
- os: macos-latest
|
- os: macos-11.0
|
||||||
NAME: macos
|
NAME: macos
|
||||||
FILE: 'libminify_html_ruby_lib.dylib'
|
FILE: 'libminify_html_ruby_lib.dylib'
|
||||||
steps:
|
steps:
|
||||||
|
@ -95,7 +95,7 @@ jobs:
|
||||||
b2 upload-file ${{ secrets.CICD_CLI_B2_BUCKET_NAME }} ./ruby/target/release/${{ matrix.FILE }} minify-html/bin/ruby/${{ steps.version.outputs.VERSION }}/${{ steps.native_file.outputs.NAME }}
|
b2 upload-file ${{ secrets.CICD_CLI_B2_BUCKET_NAME }} ./ruby/target/release/${{ matrix.FILE }} minify-html/bin/ruby/${{ steps.version.outputs.VERSION }}/${{ steps.native_file.outputs.NAME }}
|
||||||
|
|
||||||
package:
|
package:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-18.04
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
2
version
2
version
|
@ -90,7 +90,7 @@ for (const f of ['java/pom.xml', 'README.md']) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const f of ['nodejs/package.json.gen.js']) {
|
for (const f of ['nodejs/package.json.gen.js']) {
|
||||||
replaceInFile(f, /^(\s*"version": )"\d+\.\d+\.\d+",\s*$/m, `$1"${NEW_VERSION}",`);
|
replaceInFile(f, /^(\s*version: )"\d+\.\d+\.\d+",\s*$/m, `$1"${NEW_VERSION}",`);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const f of ['ruby/minify_html.gemspec']) {
|
for (const f of ['ruby/minify_html.gemspec']) {
|
||||||
|
|
Loading…
Reference in New Issue