Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Fix Doxygen project name (#228) #1023

Fix Doxygen project name (#228)

Fix Doxygen project name (#228) #1023

Workflow file for this run

name: Build Rust
on: [pull_request, push]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- artifact-name: Windows x86_64
os: windows-2022
cargo-build-flags:
- artifact-name: Windows aarch64
os: windows-2022
cargo-build-flags: --target aarch64-pc-windows-msvc
- artifact-name: macOS universal
os: macOS-14
cmake_env:
cargo-build-flags:
- artifact-name: Linux x86_64
os: ubuntu-24.04
cargo-build-flags:
- artifact-name: Linux aarch64
os: ubuntu-24.04
cargo-build-flags: --target aarch64-unknown-linux-gnu
name: "${{ matrix.artifact-name }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Windows aarch64 Rust compiler
if: matrix.artifact-name == 'Windows aarch64'
run: rustup target install aarch64-pc-windows-msvc
- name: Set up Linux aarch64 Rust compiler
if: matrix.artifact-name == 'Linux aarch64'
run: |
sudo apt-get update -q
sudo apt-get install -y g++-14-aarch64-linux-gnu
sudo update-alternatives --install /usr/bin/aarch64-linux-gnu-gcc aarch64-linux-gnu-gcc /usr/bin/aarch64-linux-gnu-gcc-14 200
sudo update-alternatives --install /usr/bin/aarch64-linux-gnu-g++ aarch64-linux-gnu-g++ /usr/bin/aarch64-linux-gnu-g++-14 200
rustup target install aarch64-unknown-linux-gnu
- name: Make GCC 14 the default toolchain (Linux)
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 200
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 200
- run: sudo xcode-select -switch /Applications/Xcode_15.3.app
if: startsWith(matrix.os, 'macOS')
- run: cargo build ${{ matrix.cargo-build-flags }}
- run: cargo run --example swerve
if: matrix.artifact-name != 'Windows aarch64' &&
matrix.artifact-name != 'Linux aarch64'