Skip to content

Test fixing openssl lib dir #241

Test fixing openssl lib dir

Test fixing openssl lib dir #241

Workflow file for this run

# This workflow is for systematic testing of the crates.
name: Test
on:
push:
branches: ["rust-rewrite"]
pull_request:
branches: ["rust-rewrite"]
workflow_call:
env:
CARGO_TERM_COLOR: always
jobs:
test:
strategy:
fail-fast: false
matrix:
# Refers to
# - https://github.com/actions/runner-images
# - https://github.com/actions/partner-runner-images
target:
- x86_64-unknown-linux-gnu
- i686-unknown-linux-gnu
- x86_64-apple-darwin
- aarch64-apple-darwin
- x86_64-pc-windows-msvc
- x86_64-pc-windows-gnu
- i686-pc-windows-msvc
- aarch64-unknown-linux-gnu
- arm-unknown-linux-gnueabihf
include:
# ubuntu-24.04 (x86_64)
- target: x86_64-unknown-linux-gnu
image: ubuntu-24.04
- target: i686-unknown-linux-gnu
image: ubuntu-24.04
setup: >
sudo dpkg --add-architecture i386 &&
sudo apt update &&
sudo apt install libssl-dev:i386 &&
echo 'OPENSSL_LIB_DIR=/usr/lib/i386-linux-gnu' >> $GITHUB_ENV
# macos-13 (x86_64)
- target: x86_64-apple-darwin
image: macos-13
# macos-15 (aarch64)
- target: aarch64-apple-darwin
image: macos-15
# windows-2022 (x86_64)
- target: x86_64-pc-windows-msvc
image: windows-2022
- target: x86_64-pc-windows-gnu
image: windows-2022
- target: i686-pc-windows-msvc
image: windows-2022
# ubuntu-24.04-arm (aarch64)
- target: aarch64-unknown-linux-gnu
image: ubuntu-24.04-arm
- target: arm-unknown-linux-gnueabihf
image: ubuntu-24.04-arm
setup: >
sudo dpkg --add-architecture armhf &&
sudo apt update &&
sudo apt install libssl-dev:armhf &&
echo 'OPENSSL_LIB_DIR=/usr/lib/armhf-linux-gnu' >> $GITHUB_ENV
runs-on: ${{ matrix.image }}
name: Test (${{ matrix.target }}/${{ matrix.image }})
steps:
- uses: actions/checkout@v4
- name: Setup
if: matrix.setup != null
run: ${{ matrix.setup }}
- name: Rustup update
run: rustup target add ${{ matrix.target }}
- name: Build
run: cargo build --target ${{ matrix.target }} --workspace --exclude portablemc-py
- name: Test
run: cargo test --target ${{ matrix.target }} --workspace --exclude portablemc-py