mepeyew 0.3.5

mepeyew - Small But Powerful Graphics Library
Documentation
name: Rust Build
on:
  push:
    branches:
    - main
  pull_request:
    branches:
    - "*"
jobs:
  build:
    name: Build Crate (${{ matrix.platform }})
    strategy:
      fail-fast: false
      matrix:
        include:
        - os: ubuntu-latest
          platform: Linux
          packages:
          - gcc-aarch64-linux-gnu
          targets:
          - x86_64-unknown-linux-gnu
          - aarch64-unknown-linux-gnu
        - os: macos-12
          platform: macOS
          targets:
          - aarch64-apple-darwin
          - aarch64-apple-ios
          - aarch64-apple-ios-sim
          - x86_64-apple-ios
        - os: windows-2022
          platform: Windows
          targets:
          - aarch64-pc-windows-msvc
        - os: ubuntu-latest
          platform: Web
          targets:
          - wasm32-unknown-unknown
    runs-on: ${{ matrix.os }}
    env:
      DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
      CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
      RUST_BACKTRACE: short
    steps:
    - name: Checkout
      uses: actions/checkout@v3
      with:
        ssh-key: ${{ secrets.DEPLOY_KEY }}
        submodules: recursive
    - name: Install Packages
      if: matrix.os == 'ubuntu-latest'
      shell: bash
      run: |
        sudo apt-get update
        sudo apt-get install -y ${{ join(matrix.packages, ' ') }}
    - name: Install Windows Deps
      if: matrix.os == 'windows-2022'
      shell: bash
      run: echo "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\Llvm\x64\bin" >> $GITHUB_PATH
    - name: Install Rust
      uses: dtolnay/rust-toolchain@stable
      with:
        toolchain: stable
        components: rustfmt
        targets: ${{ join(matrix.targets, ', ') }}
    - name: Setup Rust Cache
      uses: Swatinem/rust-cache@v2
    - name: Build
      shell: bash
      run: cargo build --verbose --examples --target ${{ join(matrix.targets, ' --target ') }}