Add arch to cache key and fix artifact path

Signed-off-by: trivernis <trivernis@protonmail.com>
actions
trivernis 4 years ago
parent f6e7db8439
commit 4219ab9583
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -22,10 +22,11 @@ jobs:
target/**/build
target/**/deps
target/**/incremental
key: ${{ runner.os }}-build-${{ hashFiles('Cargo.lock') }}
~/.cargo/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ hashFiles('Cargo.lock') }}
${{ runner.os }}-build-
${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
${{ runner.os }}-cargo-
- name: Build
run: cargo build --verbose
- name: Run tests
@ -55,8 +56,9 @@ jobs:
target/**/deps
target/**/incremental
~/.cargo/
key: ${{ runner.os }}-cargo-${{ github.sha }}
key: ${{ runner.os }}-cargo-${{ matrix.target }}-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-${{ matrix.target }}-
${{ runner.os }}-cargo-
- name: Build Release
uses: actions-rs/cargo@v1
@ -68,4 +70,4 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: snekcloud-server-${{ matrix.target }}
path: target/${{ matrix.target }}/snekcloud-server
path: target/${{ matrix.target }}/release/snekcloud-server
Loading…
Cancel
Save