tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

rust.yml (18380B)


      1 # This Source Code Form is subject to the terms of the Mozilla Public
      2 # License, v. 2.0. If a copy of the MPL was not distributed with this
      3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
      4 ---
      5 task-defaults:
      6    description: "rust repack"
      7    worker-type: b-linux-docker-amd
      8    worker:
      9        max-run-time: 7200
     10    run:
     11        script: repack_rust.py
     12        toolchain-artifact: public/build/rustc.tar.zst
     13 
     14 linux64-rust-1.87:
     15    treeherder:
     16        symbol: TL(rust-1.87)
     17    run:
     18        arguments: [
     19            '--channel', '1.87.0',
     20            '--host', 'x86_64-unknown-linux-gnu',
     21            '--target', 'x86_64-unknown-linux-gnu',
     22            '--target', 'i686-unknown-linux-gnu',
     23            '--target', 'aarch64-unknown-linux-gnu',
     24            '--target', 'wasm32-wasip1',
     25        ]
     26        toolchain-alias:
     27            - linux64-rust-base
     28            - linux64-rust-toolchain
     29 
     30 linux64-rust-macos-1.87:
     31    description: "rust repack with macos-cross support"
     32    treeherder:
     33        symbol: TL(rust-macos-1.87)
     34    run:
     35        arguments: [
     36            '--channel', '1.87.0',
     37            '--host', 'x86_64-unknown-linux-gnu',
     38            '--target', 'x86_64-unknown-linux-gnu',
     39            '--target', 'x86_64-apple-darwin',
     40            '--target', 'aarch64-apple-darwin',
     41        ]
     42        toolchain-alias: linux64-rust-macos-toolchain
     43 
     44 linux64-rust-windows-1.87:
     45    description: "rust repack with windows-cross support"
     46    treeherder:
     47        symbol: TL(rust-win-1.87)
     48    run:
     49        arguments: [
     50            '--channel', '1.87.0',
     51            '--host', 'x86_64-unknown-linux-gnu',
     52            '--target', 'x86_64-unknown-linux-gnu',
     53            '--target', 'x86_64-pc-windows-msvc',
     54            '--target', 'i686-pc-windows-msvc',
     55            '--target', 'aarch64-pc-windows-msvc',
     56        ]
     57        toolchain-alias: linux64-rust-windows-toolchain
     58 
     59 linux64-rust-1.90:
     60    treeherder:
     61        symbol: TL(rust)
     62    run:
     63        arguments: [
     64            '--channel', '1.90.0',
     65            '--host', 'x86_64-unknown-linux-gnu',
     66            '--target', 'x86_64-unknown-linux-gnu',
     67            '--target', 'i686-unknown-linux-gnu',
     68            '--target', 'aarch64-unknown-linux-gnu',
     69            '--target', 'wasm32-wasip1',
     70        ]
     71        toolchain-alias:
     72            by-project:
     73                toolchains: null
     74                default: linux64-rust
     75 
     76 # A patched rust toolchain that allows us to use sanitizers in our vendored
     77 # build environment. See the rust fetch's comments for more details.
     78 linux64-rust-1.90-dev:
     79    description: "build rust from source"
     80    worker-type: b-linux-docker-large-amd
     81    treeherder:
     82        symbol: TL(rust-dev)
     83    worker:
     84        env:
     85            # Work around https://github.com/rust-lang/rust/issues/105967
     86            RUSTFLAGS_BOOTSTRAP: '-Clink-arg=-Wl,--undefined-version'
     87            RUSTFLAGS_NOT_BOOTSTRAP: '-Clink-arg=-Wl,--undefined-version'
     88    run:
     89        arguments: [
     90            '--patch', 'rust-vendor-std.patch',
     91            '--patch', 'Zprofile.patch',
     92            '--channel', 'dev',
     93            '--host', 'x86_64-unknown-linux-gnu',
     94            '--target', 'x86_64-unknown-linux-gnu',
     95        ]
     96        resources:
     97            - build/build-rust/rust-vendor-std.patch
     98            - build/build-rust/Zprofile.patch
     99        toolchain-alias:
    100            by-project:
    101                toolchains: null
    102                default: linux64-rust-dev
    103    fetches:
    104        fetch:
    105            - rust-1.90.0
    106        toolchain:
    107            - linux64-clang-toolchain
    108            - linux64-toolchain-sysroot
    109 
    110 win64-rust-1.90-dev:
    111    description: "build rust from source"
    112    worker-type: b-win2022
    113    treeherder:
    114        symbol: TW64(rust-dev)
    115    run:
    116        arguments: [
    117            '--patch', 'rust-vendor-std.patch',
    118            '--patch', 'Zprofile.patch',
    119            '--channel', 'dev',
    120            '--host', 'x86_64-pc-windows-msvc',
    121            '--target', 'x86_64-pc-windows-msvc',
    122        ]
    123        resources:
    124            - build/build-rust/rust-vendor-std.patch
    125            - build/build-rust/Zprofile.patch
    126        toolchain-alias:
    127            by-project:
    128                toolchains: null
    129                default: win64-rust-dev
    130    fetches:
    131        fetch:
    132            - rust-1.90.0
    133            - win64-ninja
    134        toolchain:
    135            - win64-clang-toolchain
    136            - win64-cmake
    137            - vs
    138 
    139 linux64-rust-cross-1.90:
    140    description: "rust repack with macos and windows cross support"
    141    treeherder:
    142        symbol: TL(rust-cross)
    143    run:
    144        arguments: [
    145            '--channel', '1.90.0',
    146            '--host', 'x86_64-unknown-linux-gnu',
    147            '--target', 'x86_64-unknown-linux-gnu',
    148            '--target', 'i686-unknown-linux-gnu',
    149            '--target', 'x86_64-apple-darwin',
    150            '--target', 'aarch64-apple-darwin',
    151            '--target', 'x86_64-pc-windows-msvc',
    152            '--target', 'i686-pc-windows-msvc',
    153            '--target', 'aarch64-pc-windows-msvc',
    154            '--target', 'armv7-linux-androideabi',
    155            '--target', 'thumbv7neon-linux-androideabi',
    156            '--target', 'aarch64-linux-android',
    157            '--target', 'i686-linux-android',
    158            '--target', 'x86_64-linux-android',
    159        ]
    160        toolchain-alias:
    161            by-project:
    162                toolchains: null
    163                default: linux64-rust-cross
    164 
    165 linux64-rust-static-1.90:
    166    description: "rust repack with static linking support"
    167    treeherder:
    168        symbol: TL(rust-static)
    169    run:
    170        arguments: [
    171            '--channel', '1.90.0',
    172            '--host', 'x86_64-unknown-linux-gnu',
    173            '--target', 'aarch64-unknown-linux-musl',
    174            '--target', 'x86_64-unknown-linux-gnu',
    175            '--target', 'x86_64-unknown-linux-musl',
    176            '--target', 'i686-unknown-linux-gnu',
    177            '--target', 'i686-unknown-linux-musl',
    178        ]
    179        toolchain-alias:
    180            by-project:
    181                toolchains: null
    182                default: linux64-rust-static
    183 
    184 linux64-rust-macos-1.90:
    185    description: "rust repack with macos-cross support"
    186    treeherder:
    187        symbol: TL(rust-macos)
    188    run:
    189        arguments: [
    190            '--channel', '1.90.0',
    191            '--host', 'x86_64-unknown-linux-gnu',
    192            '--target', 'x86_64-unknown-linux-gnu',
    193            '--target', 'x86_64-apple-darwin',
    194            '--target', 'aarch64-apple-darwin',
    195        ]
    196        toolchain-alias:
    197            by-project:
    198                toolchains: null
    199                default: linux64-rust-macos
    200 
    201 linux64-rust-ios-1.90:
    202    description: "rust repack with ios-cross support"
    203    treeherder:
    204        symbol: TL(rust-ios)
    205    run:
    206        arguments: [
    207            '--channel', '1.90.0',
    208            '--host', 'x86_64-unknown-linux-gnu',
    209            '--target', 'x86_64-unknown-linux-gnu',
    210            '--target', 'aarch64-apple-ios',
    211            '--target', 'aarch64-apple-ios-sim',
    212        ]
    213        toolchain-alias:
    214            by-project:
    215                toolchains: null
    216                default: linux64-rust-ios
    217 
    218 linux64-rust-android-1.90:
    219    description: "rust repack with android-cross support"
    220    treeherder:
    221        symbol: TL(rust-android)
    222    run:
    223        arguments: [
    224            '--channel', '1.90.0',
    225            '--host', 'x86_64-unknown-linux-gnu',
    226            '--target', 'x86_64-unknown-linux-gnu',
    227            '--target', 'armv7-linux-androideabi',
    228            '--target', 'thumbv7neon-linux-androideabi',
    229            '--target', 'aarch64-linux-android',
    230            '--target', 'i686-linux-android',
    231            '--target', 'x86_64-linux-android',
    232        ]
    233        toolchain-alias:
    234            by-project:
    235                toolchains: null
    236                default: linux64-rust-android
    237 
    238 linux64-rust-windows-1.90:
    239    description: "rust repack with windows-cross support"
    240    treeherder:
    241        symbol: TL(rust-win)
    242    run:
    243        arguments: [
    244            '--channel', '1.90.0',
    245            '--host', 'x86_64-unknown-linux-gnu',
    246            '--target', 'x86_64-unknown-linux-gnu',
    247            '--target', 'x86_64-pc-windows-msvc',
    248            '--target', 'i686-pc-windows-msvc',
    249            '--target', 'aarch64-pc-windows-msvc',
    250        ]
    251        toolchain-alias:
    252            by-project:
    253                toolchains: null
    254                default: linux64-rust-windows
    255 
    256 win64-rust-1.90:
    257    treeherder:
    258        symbol: TW64(rust)
    259    run:
    260        arguments: [
    261            '--channel', '1.90.0',
    262            '--host', 'x86_64-pc-windows-msvc',
    263            '--target', 'x86_64-pc-windows-msvc',
    264            '--target', 'i686-pc-windows-msvc',
    265            '--target', 'aarch64-pc-windows-msvc',
    266        ]
    267        toolchain-alias:
    268            by-project:
    269                toolchains: null
    270                default: win64-rust
    271 
    272 macosx64-rust-1.90:
    273    treeherder:
    274        symbol: TM(rust)
    275    run:
    276        arguments: [
    277            '--channel', '1.90.0',
    278            '--host', 'x86_64-apple-darwin',
    279            '--target', 'x86_64-apple-darwin',
    280        ]
    281        toolchain-alias:
    282            by-project:
    283                toolchains: null
    284                default: macosx64-rust
    285 
    286 mingw32-rust-1.90:
    287    treeherder:
    288        symbol: TMW(rust)
    289    run:
    290        arguments: [
    291            '--channel', '1.90.0',
    292            '--host', 'x86_64-unknown-linux-gnu',
    293            '--target', 'i686-unknown-linux-gnu',
    294            '--target', 'i686-pc-windows-gnu',
    295            '--target', 'x86_64-pc-windows-gnu',
    296            '--target', 'x86_64-unknown-linux-gnu',
    297        ]
    298        toolchain-alias:
    299            by-project:
    300                toolchains: null
    301                default: mingw32-rust
    302 
    303 linux64-rust-nightly:
    304    attributes:
    305        cached_task: false
    306    treeherder:
    307        symbol: TL(rust-nightly)
    308    run:
    309        arguments: [
    310            '--channel', 'nightly', '--allow-generic-channel',
    311            '--host', 'x86_64-unknown-linux-gnu',
    312            '--target', 'x86_64-unknown-linux-gnu',
    313            '--target', 'i686-unknown-linux-gnu',
    314            '--target', 'aarch64-unknown-linux-gnu',
    315            '--target', 'wasm32-wasip1',
    316        ]
    317        toolchain-alias:
    318            by-project:
    319                toolchains: linux64-rust
    320                default: null
    321 
    322 # A patched rust toolchain that allows us to use sanitizers in our vendored
    323 # build environment. See the rust fetch's comments for more details.
    324 linux64-rust-nightly-dev:
    325    attributes:
    326        cached_task: false
    327    description: "build rust from source"
    328    worker-type: b-linux-docker-large-amd
    329    treeherder:
    330        symbol: TL(rust-dev-nightly)
    331    worker:
    332        env:
    333            # Work around https://github.com/rust-lang/rust/issues/105967
    334            RUSTFLAGS_BOOTSTRAP: '-Clink-arg=-Wl,--undefined-version'
    335            RUSTFLAGS_NOT_BOOTSTRAP: '-Clink-arg=-Wl,--undefined-version'
    336    run:
    337        arguments: [
    338            '--patch', 'rust-vendor-std.patch',
    339            '--patch', 'Zprofile-1.92.patch',
    340            '--channel', 'dev',
    341            '--host', 'x86_64-unknown-linux-gnu',
    342            '--target', 'x86_64-unknown-linux-gnu',
    343        ]
    344        resources:
    345            - build/build-rust/rust-vendor-std.patch
    346            - build/build-rust/Zprofile-1.92.patch
    347        toolchain-alias:
    348            by-project:
    349                toolchains: linux64-rust-dev
    350                default: null
    351    fetches:
    352        fetch:
    353            - rust-nightly
    354        toolchain:
    355            - linux64-clang-toolchain
    356            - linux64-toolchain-sysroot
    357 
    358 win64-rust-nightly-dev:
    359    attributes:
    360        cached_task: false
    361    description: "build rust from source"
    362    worker-type: b-win2022
    363    treeherder:
    364        symbol: TW64(rust-dev-nightly)
    365    run:
    366        arguments: [
    367            '--patch', 'rust-vendor-std.patch',
    368            '--patch', 'Zprofile-1.92.patch',
    369            '--channel', 'dev',
    370            '--host', 'x86_64-pc-windows-msvc',
    371            '--target', 'x86_64-pc-windows-msvc',
    372        ]
    373        resources:
    374            - build/build-rust/rust-vendor-std.patch
    375            - build/build-rust/Zprofile-1.92.patch
    376        toolchain-alias:
    377            by-project:
    378                toolchains: win64-rust-dev
    379                default: null
    380    fetches:
    381        fetch:
    382            - rust-nightly
    383            - win64-ninja
    384        toolchain:
    385            - win64-clang-toolchain
    386            - win64-cmake
    387            - vs
    388 
    389 linux64-rust-cross-nightly:
    390    attributes:
    391        cached_task: false
    392    description: "rust repack with macos and windows cross support"
    393    treeherder:
    394        symbol: TL(rust-cross-nightly)
    395    run:
    396        arguments: [
    397            '--channel', 'nightly', '--allow-generic-channel',
    398            '--host', 'x86_64-unknown-linux-gnu',
    399            '--target', 'x86_64-unknown-linux-gnu',
    400            '--target', 'i686-unknown-linux-gnu',
    401            '--target', 'x86_64-apple-darwin',
    402            '--target', 'aarch64-apple-darwin',
    403            '--target', 'x86_64-pc-windows-msvc',
    404            '--target', 'i686-pc-windows-msvc',
    405            '--target', 'aarch64-pc-windows-msvc',
    406            '--target', 'armv7-linux-androideabi',
    407            '--target', 'thumbv7neon-linux-androideabi',
    408            '--target', 'aarch64-linux-android',
    409            '--target', 'i686-linux-android',
    410            '--target', 'x86_64-linux-android',
    411        ]
    412        toolchain-alias:
    413            by-project:
    414                toolchains: linux64-rust-cross
    415                default: null
    416 
    417 linux64-rust-static-nightly:
    418    attributes:
    419        cached_task: false
    420    description: "rust repack with static linking support"
    421    treeherder:
    422        symbol: TL(rust-static-nightly)
    423    run:
    424        arguments: [
    425            '--channel', 'nightly', '--allow-generic-channel',
    426            '--host', 'x86_64-unknown-linux-gnu',
    427            '--target', 'aarch64-unknown-linux-musl',
    428            '--target', 'x86_64-unknown-linux-gnu',
    429            '--target', 'x86_64-unknown-linux-musl',
    430            '--target', 'i686-unknown-linux-gnu',
    431            '--target', 'i686-unknown-linux-musl',
    432        ]
    433        toolchain-alias:
    434            by-project:
    435                toolchains: linux64-rust-static
    436                default: null
    437 
    438 linux64-rust-macos-nightly:
    439    attributes:
    440        cached_task: false
    441    description: "rust repack with macos-cross support"
    442    treeherder:
    443        symbol: TL(rust-macos-nightly)
    444    run:
    445        arguments: [
    446            '--channel', 'nightly', '--allow-generic-channel',
    447            '--host', 'x86_64-unknown-linux-gnu',
    448            '--target', 'x86_64-unknown-linux-gnu',
    449            '--target', 'x86_64-apple-darwin',
    450            '--target', 'aarch64-apple-darwin',
    451        ]
    452        toolchain-alias:
    453            by-project:
    454                toolchains: linux64-rust-macos
    455                default: null
    456 
    457 linux64-rust-ios-nightly:
    458    attributes:
    459        cached_task: false
    460    description: "rust repack with ios-cross support"
    461    treeherder:
    462        symbol: TL(rust-ios-nightly)
    463    run:
    464        arguments: [
    465            '--channel', 'nightly', '--allow-generic-channel',
    466            '--host', 'x86_64-unknown-linux-gnu',
    467            '--target', 'x86_64-unknown-linux-gnu',
    468            '--target', 'aarch64-apple-ios',
    469            '--target', 'aarch64-apple-ios-sim',
    470        ]
    471        toolchain-alias:
    472            by-project:
    473                toolchains: linux64-rust-ios
    474                default: null
    475 
    476 linux64-rust-android-nightly:
    477    attributes:
    478        cached_task: false
    479    description: "rust repack with android-cross support"
    480    treeherder:
    481        symbol: TL(rust-android-nightly)
    482    run:
    483        arguments: [
    484            '--channel', 'nightly', '--allow-generic-channel',
    485            '--host', 'x86_64-unknown-linux-gnu',
    486            '--target', 'x86_64-unknown-linux-gnu',
    487            '--target', 'armv7-linux-androideabi',
    488            '--target', 'thumbv7neon-linux-androideabi',
    489            '--target', 'aarch64-linux-android',
    490            '--target', 'i686-linux-android',
    491            '--target', 'x86_64-linux-android',
    492        ]
    493        toolchain-alias:
    494            by-project:
    495                toolchains: linux64-rust-android
    496                default: null
    497 
    498 linux64-rust-windows-nightly:
    499    attributes:
    500        cached_task: false
    501    description: "rust repack with windows-cross support"
    502    treeherder:
    503        symbol: TL(rust-win-nightly)
    504    run:
    505        arguments: [
    506            '--channel', 'nightly', '--allow-generic-channel',
    507            '--host', 'x86_64-unknown-linux-gnu',
    508            '--target', 'x86_64-unknown-linux-gnu',
    509            '--target', 'x86_64-pc-windows-msvc',
    510            '--target', 'i686-pc-windows-msvc',
    511            '--target', 'aarch64-pc-windows-msvc',
    512        ]
    513        toolchain-alias:
    514            by-project:
    515                toolchains: linux64-rust-windows
    516                default: null
    517 
    518 win64-rust-nightly:
    519    attributes:
    520        cached_task: false
    521    treeherder:
    522        symbol: TW64(rust-nightly)
    523    run:
    524        arguments: [
    525            '--channel', 'nightly', '--allow-generic-channel',
    526            '--host', 'x86_64-pc-windows-msvc',
    527            '--target', 'x86_64-pc-windows-msvc',
    528            '--target', 'i686-pc-windows-msvc',
    529            '--target', 'aarch64-pc-windows-msvc',
    530        ]
    531        toolchain-alias:
    532            by-project:
    533                toolchains: win64-rust
    534                default: null
    535 
    536 macosx64-rust-nightly:
    537    attributes:
    538        cached_task: false
    539    treeherder:
    540        symbol: TM(rust-nightly)
    541    run:
    542        arguments: [
    543            '--channel', 'nightly', '--allow-generic-channel',
    544            '--host', 'x86_64-apple-darwin',
    545            '--target', 'x86_64-apple-darwin',
    546        ]
    547        toolchain-alias:
    548            by-project:
    549                toolchains: macosx64-rust
    550                default: null
    551 
    552 mingw32-rust-nightly:
    553    attributes:
    554        cached_task: false
    555    treeherder:
    556        symbol: TMW(rust-nightly)
    557    run:
    558        arguments: [
    559            '--channel', 'nightly', '--allow-generic-channel',
    560            '--host', 'x86_64-unknown-linux-gnu',
    561            '--target', 'i686-unknown-linux-gnu',
    562            '--target', 'i686-pc-windows-gnu',
    563            '--target', 'x86_64-pc-windows-gnu',
    564            '--target', 'x86_64-unknown-linux-gnu',
    565        ]
    566        toolchain-alias:
    567            by-project:
    568                toolchains: mingw32-rust
    569                default: null