Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use baseline cross instead of old, custom variant #1234

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions dist/azure-build-and-test-cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,26 @@ steps:
- bash: docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes
displayName: Set up QEMU

- bash: docker run --rm -v $(pwd):/work:rw,Z tectonictypesetting/ttcross:latest
displayName: Install custom-built cross tool
- bash: cargo install cross
displayName: Install cross

- bash: |
HOST_UID=$(id -u)
HOST_GID=$(id -g)
echo "##vso[task.setvariable variable=CROSS_ARGS;]--target=$TARGET --release"
echo "##vso[task.setvariable variable=CROSS_ROOTLESS_CONTAINER_ENGINE;]1"
echo "##vso[task.setvariable variable=DOCKER_OPTS;]--cap-add SYS_ADMIN -e HOST_UID=${HOST_UID} -e HOST_GID=${HOST_GID}"
displayName: Set build variables

# Main build/test

- bash: ./cross build $CROSS_ARGS --all
- bash: |
echo "CROSS_ROOTLESS_CONTAINER_ENGINE: $CROSS_ROOTLESS_CONTAINER_ENGINE"
echo "DOCKER_OPTS: $DOCKER_OPTS"
cross build $CROSS_ARGS --all
displayName: "cross build"

- bash: ./cross test $CROSS_ARGS --all
- bash: cross test $CROSS_ARGS --all
displayName: "cross test"

# Publish binaries
Expand Down
40 changes: 20 additions & 20 deletions dist/azure-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,28 +224,28 @@ jobs:
TOOLCHAIN: stable

# pkg-config builds
- ${{ each build in parameters.pkgconfigBuilds }}:
- job: ${{ format('build_{0}_pkgconfig', build.name) }}
pool:
vmImage: ${{ build.vmImage }}
steps:
- template: azure-build-and-test-pkgconfig.yml
parameters:
${{ insert }}: ${{ build.params }}
variables:
${{ insert }}: ${{ build.vars }}
# - ${{ each build in parameters.pkgconfigBuilds }}:
# - job: ${{ format('build_{0}_pkgconfig', build.name) }}
# pool:
# vmImage: ${{ build.vmImage }}
# steps:
# - template: azure-build-and-test-pkgconfig.yml
# parameters:
# ${{ insert }}: ${{ build.params }}
# variables:
# ${{ insert }}: ${{ build.vars }}

# vcpkg builds
- ${{ each build in parameters.vcpkgBuilds }}:
- job: ${{ format('build_{0}_vcpkg', build.name) }}
pool:
vmImage: ${{ build.vmImage }}
steps:
- template: azure-build-and-test-vcpkg.yml
parameters:
${{ insert }}: ${{ build.params }}
variables:
${{ insert }}: ${{ build.vars }}
# - ${{ each build in parameters.vcpkgBuilds }}:
# - job: ${{ format('build_{0}_vcpkg', build.name) }}
# pool:
# vmImage: ${{ build.vmImage }}
# steps:
# - template: azure-build-and-test-vcpkg.yml
# parameters:
# ${{ insert }}: ${{ build.params }}
# variables:
# ${{ insert }}: ${{ build.vars }}

# cross builds
- ${{ each build in parameters.crossBuilds }}:
Expand Down
Loading