Skip to content

Add DocFx Integration #3964

Add DocFx Integration

Add DocFx Integration #3964

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@f43a0e5ff2bd294095638e18286ca9a3d1956744
- 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