CI for ML-DSA C code #1379
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: Platform | |
on: | |
push: | |
branches: ["main", "dev"] | |
pull_request: | |
branches: ["main", "dev", "*"] | |
workflow_dispatch: | |
merge_group: | |
env: | |
CARGO_TERM_COLOR: always | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
platform: | |
strategy: | |
fail-fast: false | |
matrix: | |
bits: [32, 64] | |
os: | |
- macos-13 # Intel mac | |
- macos-latest # macos-14 m1 | |
- ubuntu-latest | |
- windows-latest | |
exclude: | |
- bits: 32 | |
os: "macos-latest" | |
- bits: 32 | |
os: "macos-13" | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
working-directory: sys/platform | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update dependencies | |
run: cargo update | |
- name: π¨ Build | |
run: cargo build --verbose | |
- name: ππ»ββοΈ Test | |
run: cargo test --verbose -- --nocapture | |
- name: ππ»ββοΈ Test Release | |
run: cargo test --verbose --release -- --nocapture | |
- name: π οΈ Setup Linux x86 | |
if: ${{ matrix.bits == 32 && matrix.os == 'ubuntu-latest' }} | |
run: | | |
rustup target add i686-unknown-linux-gnu | |
sudo apt-get update | |
sudo apt-get install -y gcc-multilib g++-multilib | |
- name: ππ»ββοΈ Test Linux x86 | |
if: ${{ matrix.bits == 32 && matrix.os == 'ubuntu-latest' }} | |
run: cargo test --verbose --target i686-unknown-linux-gnu -- --nocapture | |
- name: ππ»ββοΈ Test Release Linux x86 | |
if: ${{ matrix.bits == 32 && matrix.os == 'ubuntu-latest' }} | |
run: cargo test --verbose --release --target i686-unknown-linux-gnu -- --nocapture | |
- name: ππ»ββοΈ Test Windows x86 | |
if: ${{ matrix.bits == 32 && matrix.os == 'windows-latest' }} | |
run: cargo test --verbose --target i686-pc-windows-msvc -- --nocapture | |
- name: ππ»ββοΈ Test Release Windows x86 | |
if: ${{ matrix.bits == 32 && matrix.os == 'windows-latest' }} | |
run: cargo test --verbose --release --target i686-pc-windows-msvc -- --nocapture | |