diff --git a/.github/workflows/android-ci.yml b/.github/workflows/android-ci.yml index b8d6bb34c8a..dec28133ab9 100644 --- a/.github/workflows/android-ci.yml +++ b/.github/workflows/android-ci.yml @@ -13,7 +13,7 @@ concurrency: jobs: build: runs-on: macos-latest-large - if: github.event.pull_request.draft == false + if: false steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/codegen-v2.yml b/.github/workflows/codegen-v2.yml index aaa4ca76447..8019e560324 100644 --- a/.github/workflows/codegen-v2.yml +++ b/.github/workflows/codegen-v2.yml @@ -17,7 +17,7 @@ env: jobs: test: runs-on: ubuntu-latest - if: github.event.pull_request.draft == false + if: false steps: - uses: actions/checkout@v3 - name: Install system dependencies diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index db3513b2a17..f82a4f233ad 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -12,6 +12,7 @@ on: jobs: build: runs-on: ubuntu-latest + if: false steps: - uses: actions/checkout@v3 - name: Lint Dockerfile diff --git a/.github/workflows/ios-ci.yml b/.github/workflows/ios-ci.yml index 649b15e84a2..21b9402c4c9 100644 --- a/.github/workflows/ios-ci.yml +++ b/.github/workflows/ios-ci.yml @@ -13,7 +13,7 @@ concurrency: jobs: build: runs-on: macos-latest-xlarge - if: github.event.pull_request.draft == false + if: false steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/kotlin-ci.yml b/.github/workflows/kotlin-ci.yml index 1198c20ae3c..76f50b2facb 100644 --- a/.github/workflows/kotlin-ci.yml +++ b/.github/workflows/kotlin-ci.yml @@ -13,7 +13,7 @@ concurrency: jobs: build: runs-on: macos-latest-xlarge - if: github.event.pull_request.draft == false + if: false steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/kotlin-sample-ci.yml b/.github/workflows/kotlin-sample-ci.yml index f96b2a4b280..548cb9c3dcd 100644 --- a/.github/workflows/kotlin-sample-ci.yml +++ b/.github/workflows/kotlin-sample-ci.yml @@ -13,7 +13,7 @@ concurrency: jobs: build: runs-on: macos-latest-xlarge - if: github.event.pull_request.draft == false + if: false steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/linux-ci-rust.yml b/.github/workflows/linux-ci-rust.yml index 02e1b7955b3..b970fff8ceb 100644 --- a/.github/workflows/linux-ci-rust.yml +++ b/.github/workflows/linux-ci-rust.yml @@ -21,7 +21,7 @@ jobs: contents: read checks: write runs-on: ubuntu-latest - if: github.event.pull_request.draft == false + if: false steps: - uses: actions/checkout@v3 - name: Install system dependencies @@ -74,7 +74,7 @@ jobs: # Run Rust tests in WASM. test-wasm: runs-on: ubuntu-latest - if: github.event.pull_request.draft == false + if: false steps: - uses: actions/checkout@v3 - name: Install system dependencies @@ -100,3 +100,20 @@ jobs: - name: Run tests in WASM run: tools/rust-test wasm + + check-binary-sizes: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Create a dummy artifact + run: | + mkdir tmp + cp registry.json tmp/artifact.txt + - name: Install Node.js + uses: actions/setup-node@v1 + with: + node-version: '14' + # ---------- this runs sizewatcher ------------ + - run: npx @adobe/sizewatcher + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/linux-ci-sonarcloud.yml b/.github/workflows/linux-ci-sonarcloud.yml index 775486d741a..c80d249ecbb 100644 --- a/.github/workflows/linux-ci-sonarcloud.yml +++ b/.github/workflows/linux-ci-sonarcloud.yml @@ -12,7 +12,7 @@ concurrency: jobs: build: - if: github.event.pull_request.draft == false && github.event.pull_request.head.repo.fork == false + if: false runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/linux-ci.yml b/.github/workflows/linux-ci.yml index 27241508303..6ed9af57d8a 100644 --- a/.github/workflows/linux-ci.yml +++ b/.github/workflows/linux-ci.yml @@ -13,7 +13,7 @@ concurrency: jobs: build: runs-on: ubuntu-latest - if: github.event.pull_request.draft == false + if: false steps: # Work around https://github.com/actions/runner-images/issues/8659 - name: Remove GCC 13 from runner image diff --git a/.github/workflows/linux-sampleapp-ci.yml b/.github/workflows/linux-sampleapp-ci.yml index 0e944049d54..f30f05e8d00 100644 --- a/.github/workflows/linux-sampleapp-ci.yml +++ b/.github/workflows/linux-sampleapp-ci.yml @@ -13,7 +13,7 @@ concurrency: jobs: build: runs-on: ubuntu-latest - if: github.event.pull_request.draft == false + if: false steps: # Work around https://github.com/actions/runner-images/issues/8659 - name: Remove GCC 13 from runner image diff --git a/.github/workflows/wasm-ci.yml b/.github/workflows/wasm-ci.yml index da063d565be..376fee43be6 100644 --- a/.github/workflows/wasm-ci.yml +++ b/.github/workflows/wasm-ci.yml @@ -13,7 +13,7 @@ concurrency: jobs: build: runs-on: ubuntu-latest - if: github.event.pull_request.draft == false + if: false steps: - uses: actions/checkout@v3 diff --git a/.sizewatcher.yml b/.sizewatcher.yml new file mode 100644 index 00000000000..657e83308b9 --- /dev/null +++ b/.sizewatcher.yml @@ -0,0 +1,25 @@ +# global thresholds when to warn or fail a build +# note that one failing or warning comparator is enough to fail or warn +# can be either +# - percentage: "50%" ("-10%" for size decrease) +# - absolute limit, as byte string: "10 MB", "5 KB" +# see https://www.npmjs.com/package/xbytes +# - absolute limit, as byte number: 1000000 +limits: + # when to fail - default: 100% + fail: 50% + # when to warn - default: 30% + warn: 10% + # below the ok limit you will get a cheers for making it notably smaller + # default: -10% + ok: -5% + +# configure individual comparators +# see list below for available comparators - use exact names as yaml keys +# by default all comparators run if they detect their content is present +comparators: + git: false + + custom: + - name: My artifact + path: tmp/artifact.txt