Unify datapath #3955
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 for Windows | |
if: runner.os == 'Windows' | |
run: scripts/prepare-machine.ps1 -Tls openssl -ForBuild -UseXdp | |
shell: pwsh | |
- name: Prepare Machine for Others | |
if: runner.os != 'Windows' | |
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 |