Skip to content

Support customizing tool chain file for cross compile #3918

Support customizing tool chain file for cross compile

Support customizing tool chain file for cross compile #3918

Workflow file for this run

name: Cargo
on:
push:
branches:
- main
- release/*
pull_request:
branches:
- main
- release/*
permissions: read-all
jobs:
cargo:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
name: Cargo
steps:
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
- name: Prepare Machine
run: scripts/prepare-machine.ps1 -Tls openssl -ForBuild
shell: pwsh
- name: Install Perl
if: runner.os == 'Windows'
uses: shogo82148/actions-setup-perl@35426a57f184a35daee329bb17ae49332ff8a422
with:
perl-version: '5.34'
- name: Install NASM
if: runner.os == 'Windows'
uses: ilammy/setup-nasm@321e6ed62a1fc77024a3bd853deb33645e8b22c4
- name: Install Cargo
if: runner.os == 'Linux'
run: curl https://sh.rustup.rs -sSf | sh -s -- -y
- name: Cargo build
run: cargo build --all
- name: Cargo test
run: cargo test --all
- name: Cargo Publish (dry run)
run: cargo publish --dry-run