mirror of
https://github.com/enso-org/enso.git
synced 2024-12-30 11:34:44 +03:00
Fix CI package size checking (https://github.com/enso-org/ide/pull/421)
Original commit: cd8c0090a3
This commit is contained in:
parent
97c3500782
commit
619249f061
42
gui/.github/workflows/build.yml
vendored
42
gui/.github/workflows/build.yml
vendored
@ -81,45 +81,3 @@ jobs:
|
||||
with:
|
||||
name: Enso IDE (macOS, app)
|
||||
path: dist/client/mac/Enso Studio.app
|
||||
|
||||
|
||||
build-fm:
|
||||
name: Build File Manager Server Mock
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [windows-latest, macOS-latest, ubuntu-latest]
|
||||
fail-fast: false
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly-2019-11-04
|
||||
override: true
|
||||
|
||||
- name: Build File Manager Server
|
||||
working-directory: src/rust
|
||||
run: cargo build --release --bin file-manager-server
|
||||
|
||||
- name: Upload Artifacts (Ubuntu)
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: File Manager Server (Linux)
|
||||
path: src/rust/target/release/file-manager-server
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
|
||||
- name: Upload Artifacts (macOS)
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: File Manager Server (macOS)
|
||||
path: src/rust/target/release/file-manager-server
|
||||
if: matrix.os == 'macos-latest'
|
||||
|
||||
- name: Upload Artifacts (Ubuntu)
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: File Manager Server (Windows)
|
||||
path: src/rust/target/release/file-manager-server.exe
|
||||
if: matrix.os == 'windows-latest'
|
2
gui/.github/workflows/check.yml
vendored
2
gui/.github/workflows/check.yml
vendored
@ -51,7 +51,7 @@ jobs:
|
||||
node-version: '12.16.1'
|
||||
|
||||
- name: Build
|
||||
run: node ./run build --dev
|
||||
run: node ./run build
|
||||
|
||||
|
||||
check:
|
||||
|
@ -127,7 +127,7 @@ commands.build.rust = async function(argv) {
|
||||
|
||||
console.log('Checking the resulting WASM size.')
|
||||
let stats = fss.statSync(paths.dist.wasm.mainOptGz)
|
||||
let limit = 2.8
|
||||
let limit = 2.9
|
||||
let size = Math.round(100 * stats.size / 1024 / 1024) / 100
|
||||
if (size > limit) {
|
||||
throw(`Output file size exceeds the limit (${size}MB > ${limit}MB).`)
|
||||
|
Loading…
Reference in New Issue
Block a user