mirror of
https://github.com/Vomitblood/stort.git
synced 2024-11-26 13:55:27 +08:00
changed github actions workflow to install rustup
This commit is contained in:
parent
8cc4f0bcbc
commit
3e813bbe7e
9
.github/workflows/build-validation.yml
vendored
9
.github/workflows/build-validation.yml
vendored
|
@ -30,10 +30,13 @@ jobs:
|
||||||
run: apt update && apt upgrade -y
|
run: apt update && apt upgrade -y
|
||||||
|
|
||||||
- name: Install dependencies for Tauri
|
- name: Install dependencies for Tauri
|
||||||
run: apt install -y cargo libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
|
run: apt install -y libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
|
||||||
|
|
||||||
- name: Update Rust
|
- name: Install Rust
|
||||||
run: rustup update
|
run: |
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||||
|
. "$HOME/.cargo/env"
|
||||||
|
rustup update
|
||||||
|
|
||||||
- name: Install mise
|
- name: Install mise
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -72,8 +72,8 @@ fn is_animated_webp(file_path: &std::path::Path) -> Result<bool, String> {
|
||||||
}
|
}
|
||||||
fn main() {
|
fn main() {
|
||||||
// Example usage
|
// Example usage
|
||||||
let path = std::path::Path::new("path/to/your/image.webp");
|
let path = std::path::Path::new("/home/vomitblood/Downloads/title.keys");
|
||||||
match determine_image_type(&path) {
|
match determine_image_type(path) {
|
||||||
Ok(image_type) => println!("Image type: {:?}", image_type),
|
Ok(image_type) => println!("Image type: {:?}", image_type),
|
||||||
Err(e) => println!("Error determining image type: {}", e),
|
Err(e) => println!("Error determining image type: {}", e),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue