Skip to content

Bump pixels from 0.17.1 to 0.17.2 (#71) #196

Bump pixels from 0.17.1 to 0.17.2 (#71)

Bump pixels from 0.17.1 to 0.17.2 (#71) #196

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- run: rustup toolchain install stable --profile minimal --no-self-update
- run: rustup component add rustfmt clippy
- uses: Swatinem/rust-cache@v2
- name: Lint with clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Check code formatting with rustfmt
run: cargo fmt -- --check
build:
needs: [ lint ]
strategy:
matrix:
BUILD_TARGET: [ release ]
OS: [ ubuntu-latest, macos-latest, macos-15-intel, windows-latest ]
runs-on: ${{ matrix.OS }}
steps:
- uses: actions/checkout@v7
- run: rustup toolchain install stable --profile minimal --no-self-update
- run: rustup --version
- uses: Swatinem/rust-cache@v2
- name: Check code in "${{ matrix.BUILD_TARGET }}" mode
run: cargo check --verbose --all-targets --all-features --profile ${{ matrix.BUILD_TARGET }}
- name: Run tests in "${{ matrix.BUILD_TARGET }}" mode
run: cargo test --verbose --profile ${{ matrix.BUILD_TARGET }}
- name: Build binaries in "${{ matrix.BUILD_TARGET }}" mode
run: cargo build --verbose --profile ${{ matrix.BUILD_TARGET }}
- name: Upload release artifact
uses: actions/upload-artifact@v7
if: ${{ matrix.BUILD_TARGET == 'release'}}
with:
name: cody_emulator_${{ matrix.OS }}_${{ matrix.BUILD_TARGET }}
path: |
target/${{ matrix.BUILD_TARGET }}/cody_emulator*
!**/*.d
!**/*.pdb
!**/*.*lib