Skip to content

fix: 修复安装命令和符号链接的问题 #530

fix: 修复安装命令和符号链接的问题

fix: 修复安装命令和符号链接的问题 #530

Workflow file for this run

name: test
on: [push, pull_request]
jobs:
build:
name: ${{ matrix.kind }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11, ubuntu-latest, windows-latest]
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: full
CARGO_TERM_COLOR: always
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Install stable toolchain
uses: actions-rs/toolchain@v2
with:
profile: minimal
toolchain: stable
override: target/*/build
- name: Configure cargo data directory
run: |
echo "CARGO_HOME=$(pwd)/.cargo_home" >> $GITHUB_ENV
- name: Cache
uses: actions/cache@v2
with:
path: |-
.cargo_home
target/*/.*
target/*/build
target/*/deps
key: ${{ matrix.config.os }}-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ matrix.config.os }}-
- name: Run cargo test
run: |
tar --version
tar --help
make test
- name: Run command
run: cargo run -- --help