Skip to content

Merge pull request #2453 from containers/dependabot/go_modules/github… #4221

Merge pull request #2453 from containers/dependabot/go_modules/github…

Merge pull request #2453 from containers/dependabot/go_modules/github… #4221

Workflow file for this run

name: cross
on:
pull_request: {}
push:
branches:
- main
env:
CARGO_TERM_COLOR: always
TRIPLE: unknown-linux-gnu
jobs:
build:
strategy:
fail-fast: false
matrix:
arch:
- x86_64
- i686
- aarch64
- powerpc64le
- s390x
name: ${{matrix.arch}}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Setup Cache
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cross-${{matrix.arch}}-${{ hashFiles('**/Cargo.lock') }}
- name: Install cross-rs
run: |
cargo install cross --git https://github.com/cross-rs/cross
cross --version
- name: Ensure the latest base image
run: docker pull ghcr.io/cross-rs/${{matrix.arch}}-$TRIPLE:main
- name: Build for ${{matrix.arch}}
run: cross build -v --target ${{matrix.arch}}-$TRIPLE