Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Allow to specify cross version #156

Open
2 of 3 tasks
AnomalRoil opened this issue Feb 9, 2021 · 0 comments
Open
2 of 3 tasks

Allow to specify cross version #156

AnomalRoil opened this issue Feb 9, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@AnomalRoil
Copy link

Do the checklist before filing an issue:

Motivation

Cross-compilation is super useful, but sadly cross is sometimes breaking things such as the compilation for powerpc64-unknown-linux-gnu and it doesn't really do semver when breaking stuff, but still has past versions we could use instead.

This project was already hit once: 4630dea

So I propose to be able to tag a cross version in the action.

Workflow example

  cross-test:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        rust_target:
          - powerpc-unknown-linux-gnu
          - powerpc64-unknown-linux-gnu
          - powerpc64le-unknown-linux-gnu
    timeout-minutes: 10
    steps:
      - uses: actions/checkout@v2
      - name: Install Rust nightly
        uses: actions-rs/toolchain@v1
        with:
            toolchain: nightly
            profile: minimal
            target: ${{ matrix.rust_target }}
            default: true
      - name: Build
        uses: actions-rs/cargo@v1
        with:
          use-cross: v0.1.16
          command: build
          args: --target ${{ matrix.rust_target }}
      - name: Test
        uses: actions-rs/cargo@v1
        with:
          use-cross: true
          command: test
          args: --target ${{ matrix.rust_target }}

When nothing is specified in the "use-cross" field, it would just use the existing cross version or download the latest, but if something is specified, it should fetch that version of cross instead.

@AnomalRoil AnomalRoil added the enhancement New feature or request label Feb 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant