This repository has been archived by the owner on Sep 6, 2024. It is now read-only.
Use Rgba instead to u32 in find_most_used_color #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust Build | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
strategy: | |
matrix: | |
target: | |
- x86_64-pc-windows-msvc | |
include: | |
- target: x86_64-pc-windows-msvc | |
os: windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Rust toolchain and cli | |
run: | | |
rustup target add ${{ matrix.target }} | |
rustup target add wasm32-unknown-unknown | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
prefix-key: "v0-rust-${{ matrix.target }}" | |
- uses: cargo-bins/cargo-binstall@c635ad6f957466c7818a18cb88570757ee1002b3 | |
- name: Install depends via cargo-install | |
run: | | |
cargo binstall tauri-cli --no-confirm | |
cargo binstall trunk --locked --no-confirm | |
- name: Build | |
run: cargo tauri build --verbose --ci | |
- name: Upload artifacts(Windows) | |
uses: actions/upload-artifact@v4 | |
if: matrix.os == 'windows-latest' | |
with: | |
name: nighty-${{ github.sha }}-${{ matrix.target }} | |
path: ./target/release/asayake.exe | |
# - name: Upload artifacts(not Windows) | |
# uses: actions/upload-artifact@v4 | |
# if: matrix.os != 'windows-latest' | |
# with: | |
# name: nighty-${{ github.sha }}-${{ matrix.target }} | |
# path: ./target/release/ |