Skip to content

Add signing and notarization to loader #106

Add signing and notarization to loader

Add signing and notarization to loader #106

Workflow file for this run

---
name: Installer downloader - Size test
on:
pull_request:
paths:
- '**'
- '!**/**.md'
- '!.github/workflows/**'
- '.github/workflows/downloader.yml'
- '!.github/CODEOWNERS'
- '!android/**'
- '!audits/**'
- '!build.sh'
- '!ci/**'
- '!clippy.toml'
- '!deny.toml'
- '!rustfmt.toml'
- '!.yamllint'
- '!docs/**'
- '!graphics/**'
- '!desktop/**'
- '!ios/**'
- '!scripts/**'
- '!.*ignore'
- '!prepare-release.sh'
- '!**/osv-scanner.toml'
permissions: {}
jobs:
build-windows:
strategy:
matrix:
config:
- os: windows-latest
arch: x64
runs-on: ${{ matrix.config.os }}
env:
# If the file is larger than this, a regression has probably been introduced.
# You should think twice before increasing this limit.
MAX_BINARY_SIZE: 2621440
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build
shell: bash
env:
# On Windows, the checkout is on the D drive, which is very small.
# Moving the target directory to the C drive ensures that the runner
# doesn't run out of space on the D drive.
CARGO_TARGET_DIR: "C:/cargo-target"
run: ./installer-downloader/build.sh
- name: Check file size
uses: ./.github/actions/check-file-size
with:
artifact: "./dist/mullvad-downloader.exe"
max_size: ${{ env.MAX_BINARY_SIZE }}
build-macos:
runs-on: macos-latest
env:
# If the file is larger than this, a regression has probably been introduced.
# You should think twice before increasing this limit.
MAX_BINARY_SIZE: 3145728
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
run: rustup target add x86_64-apple-darwin
- name: Build
run: ./installer-downloader/build.sh
- name: Check file size
uses: ./.github/actions/check-file-size
with:
artifact: "./dist/mullvad-downloader.dmg"
max_size: ${{ env.MAX_BINARY_SIZE }}