pix-engine 0.6.0

A cross-platform graphics/UI engine framework for simple games, visualizations, and graphics demos.
Documentation
name: Cargo Package

on:
  release:
    types: [created]
  workflow_dispatch:

jobs:
  package:
    runs-on: macos-latest
    steps:
    - name: Checkout
      uses: actions/checkout@v3

    - name: Install toolchain
      uses: actions-rs/toolchain@v1
      with:
        profile: minimal
        toolchain: stable
        override: true

    - name: Cache cargo dependencies
      uses: Swatinem/rust-cache@v1

    - name: Install build dependencies
      shell: bash
      run: |
        set -xeuo pipefail
        brew update
        brew install sdl2 sdl2_gfx sdl2_image sdl2_mixer sdl2_ttf

    - name: Publish Crate
      uses: katyo/publish-crates@v1
      with:
        registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}