Skip to content

Install gcc for other arch #12

Install gcc for other arch

Install gcc for other arch #12

Workflow file for this run

name: Test
on:
push:
branches: [ "master" ]
paths-ignore: [ "README.md", "LICENSE" ]
pull_request:
branches: [ "master" ]
paths-ignore: [ "README.md", "LICENSE" ]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
jobs:
build:
strategy:
matrix:
config:
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest }
- { target: aarch64-unknown-linux-gnu, os: ubuntu-latest }
- { target: i686-unknown-linux-gnu, os: ubuntu-latest }
- { target: x86_64-pc-windows-msvc, os: windows-latest }
- { target: x86_64-pc-windows-gnu, os: windows-latest }
- { target: i686-pc-windows-msvc, os: windows-latest }
- { target: aarch64-apple-darwin, os: macos-latest }
- { target: x86_64-apple-darwin, os: macos-latest }
name: ${{ matrix.config.target }}
runs-on: ${{ matrix.config.os }}
continue-on-error: true
steps:
- uses: actions/checkout@v4
- if: ${{ matrix.config.target }} == i686-unknown-linux-gnu
run: |
sudo apt update
sudo apt install gcc-i686-linux-gnu
- if: ${{ matrix.config.target }} == aarch64-unknown-linux-gnu
run: |
sudo apt update
sudo apt install gcc-aarch64-linux-gnu
- name: Setup Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
target: ${{ matrix.config.target }}
- name: Test hashes backend
run: cargo test --features hashes_backend --target ${{ matrix.config.target }}
- name: Test ring backend
run: cargo test --no-default-features --features ring_backend --target ${{ matrix.config.target }}