Skip to content

add styling documentation, change argb to rgba in color structs #14

add styling documentation, change argb to rgba in color structs

add styling documentation, change argb to rgba in color structs #14

Workflow file for this run

# based on: https://github.com/LGUG2Z/komorebi/blob/master/.github/workflows/windows.yaml
name: Windows
on:
push:
branches: ["main"]
# paths:
# - "winbar*/**"
pull_request:
branches: ["main"]
# paths:
# - "winbar*/**"
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
target:
- x86_64-pc-windows-msvc
steps:
- uses: actions/checkout@v4
- name: Cache Cargo data
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
~/.cargo/bin
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Get rustc commit hash
id: cargo-target-cache
run: |
echo "::set-output name=rust_hash::$(rustc -Vv | grep commit-hash | awk '{print $2}')"
- name: Cache Cargo build
uses: actions/cache@v4
with:
path: target
key: ${{ github.base_ref }}-${{ github.head_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ github.base_ref }}-${{ matrix.target }}-cargo-target-dir-${{ steps.cargo-target-cache.outputs.rust_hash }}-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rustup using win.rustup.rs
run: |
# Disable the download progress bar which can cause perf issues
$ProgressPreference = "SilentlyContinue"
Invoke-WebRequest https://win.rustup.rs/ -OutFile rustup-init.exe
.\rustup-init.exe -y --default-host=x86_64-pc-windows-msvc --profile=minimal
shell: powershell
- name: Ensure stable toolchain is up to date
run: rustup update stable
shell: bash
- name: Install the target
run: |
rustup target install ${{ matrix.target }}
- name: Run Cargo checks
run: |
cargo fmt --check
cargo check
cargo clippy
- name: Run full build
run: |
cargo build --locked --release --target ${{ matrix.target }}
- name: Upload built artifacts
uses: actions/upload-artifact@v4
with:
name: winbar-${{ matrix.target }}
path: |
target/${{ matrix.target }}/release/winbar.exe
target/${{ matrix.target }}/release/winbar.pdb
target/${{ matrix.target }}/release/winbarc.exe
target/${{ matrix.target }}/release/winbarc.pdb
retention-days: 7