parent
77d025387e
commit
b24c11a588
2 changed files with 7 additions and 22 deletions
|
@ -14,14 +14,15 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Cargo via Ubuntu package
|
- name: Install Cargo via Ubuntu package
|
||||||
run: sudo apt-get install -y cargo
|
run: sudo apt-get install -y cargo
|
||||||
|
|
||||||
- name: Cache dependencies (restore)
|
- name: Cache dependencies
|
||||||
uses: actions/cache/restore@v2
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
target
|
target
|
||||||
~/.cargo
|
~/.cargo
|
||||||
|
@ -30,14 +31,6 @@ jobs:
|
||||||
- name: Update dependencies
|
- name: Update dependencies
|
||||||
run: cargo fetch
|
run: cargo fetch
|
||||||
|
|
||||||
- name: Cache dependencies (save)
|
|
||||||
uses: actions/cache/save@v2
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
target
|
|
||||||
~/.cargo
|
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
|
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: cargo fmt --check
|
run: cargo fmt --check
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@ jobs:
|
||||||
- name: Install Cargo via Ubuntu package
|
- name: Install Cargo via Ubuntu package
|
||||||
run: sudo apt-get install -y cargo
|
run: sudo apt-get install -y cargo
|
||||||
|
|
||||||
- name: Cache dependencies (restore)
|
- name: Cache dependencies
|
||||||
uses: actions/cache/restore@v2
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
target
|
target
|
||||||
|
@ -32,14 +32,6 @@ jobs:
|
||||||
- name: Update dependencies
|
- name: Update dependencies
|
||||||
run: cargo fetch
|
run: cargo fetch
|
||||||
|
|
||||||
- name: Cache dependencies (save)
|
|
||||||
uses: actions/cache/save@v2
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
target
|
|
||||||
~/.cargo
|
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
|
|
||||||
- name: Compile for Linux
|
- name: Compile for Linux
|
||||||
run: cargo build --release --target x86_64-unknown-linux-gnu
|
run: cargo build --release --target x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue