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