update deps

This commit is contained in:
Piotr Siuszko 2025-08-05 20:42:45 +02:00
parent 946b0191cd
commit aae3c5fe70
2 changed files with 53 additions and 53 deletions

View File

@ -3,13 +3,13 @@ name: build
on: on:
workflow_dispatch: workflow_dispatch:
push: push:
branches: [ main, master ] branches: [main, master]
paths: paths:
- '.github/**' - ".github/**"
- 'rusty_hub_egui/**' - "rusty_hub_egui/**"
- 'unity_hub_lib/**' - "unity_hub_lib/**"
pull_request: pull_request:
branches: [ main, master ] branches: [main, master]
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
@ -18,42 +18,42 @@ jobs:
build-unix: build-unix:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Hack sources.list - name: Hack sources.list
run: sudo sed -i 's|http://azure.archive.ubuntu.com/ubuntu/|http://mirror.arizona.edu/ubuntu/|g' /etc/apt/sources.list run: sudo sed -i 's|http://azure.archive.ubuntu.com/ubuntu/|http://mirror.arizona.edu/ubuntu/|g' /etc/apt/sources.list
- name: Update res - name: Update res
run: sudo apt-get update run: sudo apt-get update
- name: Install dependencies - name: Install dependencies
run: sudo apt-get install -y mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libatk1.0-dev librust-gdk-sys-dev run: sudo apt-get install -y mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libatk1.0-dev librust-gdk-sys-dev
- run: rustup toolchain install stable --profile minimal - run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with: with:
# An explicit cache key that is used instead of the automatic `job`-based # An explicit cache key that is used instead of the automatic `job`-based
# cache key and is thus stable across jobs. # cache key and is thus stable across jobs.
# Default: empty # Default: empty
shared-key: "" shared-key: ""
# An additional cache key that is added alongside the automatic `job`-based # An additional cache key that is added alongside the automatic `job`-based
# cache key and can be used to further differentiate jobs. # cache key and can be used to further differentiate jobs.
# Default: empty # Default: empty
key: "" key: ""
# A whitespace separated list of env-var *prefixes* who's value contributes # A whitespace separated list of env-var *prefixes* who's value contributes
# to the environment cache key. # to the environment cache key.
# The env-vars are matched by *prefix*, so the default `RUST` var will # The env-vars are matched by *prefix*, so the default `RUST` var will
# match all of `RUSTC`, `RUSTUP_*`, `RUSTFLAGS`, `RUSTDOC_*`, etc. # match all of `RUSTC`, `RUSTUP_*`, `RUSTFLAGS`, `RUSTDOC_*`, etc.
# Default: "CARGO CC CFLAGS CXX CMAKE RUST" # Default: "CARGO CC CFLAGS CXX CMAKE RUST"
env-vars: "" env-vars: ""
# The cargo workspaces and target directory configuration. # The cargo workspaces and target directory configuration.
# These entries are separated by newlines and have the form # These entries are separated by newlines and have the form
# `$workspace -> $target`. The `$target` part is treated as a directory # `$workspace -> $target`. The `$target` part is treated as a directory
# relative to the `$workspace` and defaults to "target" if not explicitly given. # relative to the `$workspace` and defaults to "target" if not explicitly given.
# Default: ". -> target" # Default: ". -> target"
workspaces: "" workspaces: ""
# Determines if the cache should be saved even when the workflow has failed. # Determines if the cache should be saved even when the workflow has failed.
# Default: "false" # Default: "false"
cache-on-failure: "" cache-on-failure: ""
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Build - name: Build
run: cd rusty_hub_egui && cargo build --verbose run: cd rusty_hub_egui && cargo build --verbose
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: upload executable name: upload executable
path: rusty_hub_egui/target/release/rusty_hub_egui path: rusty_hub_egui/target/release/rusty_hub_egui

View File

@ -10,12 +10,12 @@ jobs:
build: build:
runs-on: windows-2022 runs-on: windows-2022
steps: steps:
- run: rustup toolchain install stable --profile minimal - run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Build - name: Build
run: cd rusty_hub_egui && cargo build --release --verbose run: cd rusty_hub_egui && cargo build --release --verbose
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: build-exe name: build-exe
path: rusty_hub_egui/target/release/*exe path: rusty_hub_egui/target/release/*exe