diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
commit | 2aa4a82499d4becd2284cdb482213d541b8804dd (patch) | |
tree | b80bf8bf13c3766139fbacc530efd0dd9d54394c /third_party/rust/bytes/ci/azure-cross-compile.yml | |
parent | Initial commit. (diff) | |
download | firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip |
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/rust/bytes/ci/azure-cross-compile.yml')
-rw-r--r-- | third_party/rust/bytes/ci/azure-cross-compile.yml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/third_party/rust/bytes/ci/azure-cross-compile.yml b/third_party/rust/bytes/ci/azure-cross-compile.yml new file mode 100644 index 0000000000..be46ca3460 --- /dev/null +++ b/third_party/rust/bytes/ci/azure-cross-compile.yml @@ -0,0 +1,46 @@ +parameters: + cmd: build + rust_version: stable + +jobs: +- job: ${{ parameters.name }} + displayName: Cross + strategy: + matrix: + i686: + vmImage: ubuntu-16.04 + target: i686-unknown-linux-gnu + armv7: + vmImage: ubuntu-16.04 + target: armv7-unknown-linux-gnueabihf + powerpc: + vmImage: ubuntu-16.04 + target: powerpc-unknown-linux-gnu + powerpc64: + vmImage: ubuntu-16.04 + target: powerpc64-unknown-linux-gnu + wasm: + vmImage: ubuntu-16.04 + target: wasm32-unknown-unknown + pool: + vmImage: $(vmImage) + + steps: + - template: azure-install-rust.yml + parameters: + rust_version: ${{parameters.rust_version}} + + - script: cargo install cross + displayName: Install cross + condition: not(eq(variables['target'], 'wasm32-unknown-unknown')) + + - script: cross ${{ parameters.cmd }} --target $(target) + displayName: cross ${{ parameters.cmd }} --target $(target) + condition: not(eq(variables['target'], 'wasm32-unknown-unknown')) + + # WASM support + - script: | + rustup target add $(target) + cargo build --target $(target) + displayName: cargo build --target $(target) + condition: eq(variables['target'], 'wasm32-unknown-unknown') |