Skip to content

Iconstate padding multiplier, pref redesign #115

Iconstate padding multiplier, pref redesign

Iconstate padding multiplier, pref redesign #115

Workflow file for this run

name: CI
on:
push:
branches:
- main
- dev
tags:
- 'v*'
paths:
- '.cargo/**'
- '.github/workflows/**'
- 'lib/**'
- 'scripts/**'
- 'tools/**'
- 'package.json'
pull_request:
branches:
- main
paths:
- '.cargo/**'
- '.github/workflows/**'
- 'lib/**'
- 'scripts/**'
- 'tools/**'
- 'package.json'
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
with:
workspaces: './lib -> target'
- name: Run rustfmt
working-directory: lib
run: |
cargo fmt -- --check
- name: Run clippy
working-directory: lib
run: |
cargo clippy --locked -- -D warnings
- name: Check release version
if: startsWith(github.ref, 'refs/tags/v')
working-directory: lib
run: |
cargo test --locked --test version
build:
needs: lint
strategy:
matrix:
os: [ windows-latest, ubuntu-latest, macos-latest ]
include:
- os: windows-latest
name: Windows
rust-target: x86_64-pc-windows-msvc
- os: ubuntu-latest
name: Linux
rust-target: x86_64-unknown-linux-gnu
- os: macos-latest
name: macOS
rust-target: x86_64-apple-darwin
runs-on: ${{ matrix.os }}
name: Build - ${{ matrix.name }}
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
target: ${{ matrix.rust-target }}
- uses: Swatinem/rust-cache@v2
with:
workspaces: './lib -> target'
- name: Run cargo tests
working-directory: lib
run: |
cargo test --target ${{ matrix.rust-target }} --locked --test dmi
- name: Run cargo build
working-directory: lib
run: |
cargo build --target ${{ matrix.rust-target }} --locked --release
- name: Run build script
run: |
python tools/build.py --ci ${{ matrix.rust-target }}
- uses: actions/upload-artifact@v7
with:
name: ${{ matrix.name }}
path: |
dist/*
if-no-files-found: error
release:
needs: build
name: Release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v6
- uses: actions/download-artifact@v8
with:
path: dist
merge-multiple: true
- uses: softprops/action-gh-release@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: true
prerelease: false
files: |
dist/*