Skip to content

Commit

Permalink
Merge pull request #5 from nziq53/add-iphone
Browse files Browse the repository at this point in the history
Add iphone
  • Loading branch information
oligamiq authored Nov 23, 2023
2 parents c5d2b1a + e4dfc66 commit 3f60eed
Show file tree
Hide file tree
Showing 41 changed files with 1,569 additions and 522 deletions.
36 changes: 32 additions & 4 deletions .github/actions/cache_cargo/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,47 @@ runs:

steps:
# Fix timestamps
- uses: cargo-bins/cargo-binstall@main
- name: restore timestamps
uses: chetan/git-restore-mtime-action@v2
- name: Cache cargo registry
uses: actions/cache@v2
- name: Cache cargo registry pc-test
if: runner.prefix == 'pc-test'
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
key: ${{ runner.os }}-${{ runner.version }}-${{ runner.prefix }}-${{ runner.target }}-${{ runner.api-level }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-${{ runner.version }}-${{ runner.prefix }}-${{ runner.target }}-${{ runner.api-level }}-cargo-
- name: Cache cargo registry pc-run
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
examples/pc/target/
key: ${{ runner.os }}-${{ runner.version }}-${{ runner.prefix }}-${{ runner.target }}-${{ runner.api-level }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-${{ runner.version }}-${{ runner.prefix }}-${{ runner.target }}-${{ runner.api-level }}-cargo-

jobs:
post:
- name: Clear the cargo caches powershell
if: runner.os == 'windows-latest'
shell: powershell
run: |
cargo install cargo-cache --no-default-features --features ci-autoclean --force --debug
cargo-cache
- name: Clear the cargo caches bash
if: runner.os != 'windows-latest'
shell: bash
run: |
cargo install cargo-cache --no-default-features --features ci-autoclean --force --debug
cargo-cache
# https://zenn.dev/naokifujita/articles/c890954165c21f
# https://zenn.dev/kt3k/articles/d557cc874961ab
Expand Down
10 changes: 10 additions & 0 deletions .github/actions/install_rust_by_version/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: install_rust_by_version
description: install rust by version
runs:
using: composite

steps:
- name: Install Rust (${{ matrix.version }})
uses: actions-rust-lang/[email protected]
with:
toolchain: ${{ matrix.version }}
Loading

0 comments on commit 3f60eed

Please sign in to comment.