Skip to content

bfjelds/cargo-cross-in-github-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create the Cross-build containers with whatever dependencies your Rust requires (can update the Dockerfiles here to add/remove dependencies: build/containers/intermediate) by running this command:

PREFIX=myacr.azurecr.io BUILD_AMD64=1 BUILD_ARM32=0 BUILD_ARM64=1 make cross

The Cross-build containers install Rust and Cross as suggested (in part) by the workaround in cross-rs/cross#260.

Because Github Actions are built into docker containers, cross struggles to mount the workspace folder. To workaround that, the workflow (.github/workflows/build-rust-container.yml) creates a symbolic link (docker-in-docker volume mount sources are in terms of the top-level docker.sock):

    - name: Create /github/workspace link for Docker-in-Docker references
      run: |
        sudo mkdir /github
        sudo ln -s $PWD /github/workspace

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published