Skip to content

Commit dcfe830

Browse files
committed
feat: actions
1 parent 574ab52 commit dcfe830

2 files changed

Lines changed: 43 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ jobs:
2828
uses: actions/cache@v4
2929
with:
3030
path: |
31-
~/.cargo/registry
32-
~/.cargo/git
33-
target
31+
~/.cargo/bin/
32+
~/.cargo/registry/index/
33+
~/.cargo/registry/cache/
34+
~/.cargo/git/db/
35+
target/
3436
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
3537
- name: Build
3638
run: cargo build --profile release

.github/workflows/cache.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Cache
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
cache:
10+
name: Cache
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
include:
15+
- os: macos-latest
16+
artifact_name: rs-wavelog-gate-macos
17+
asset_name: rs-wavelog-gate
18+
- os: windows-latest
19+
artifact_name: rs-wavelog-gate-windows
20+
asset_name: rs-wavelog-gate.exe
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Cache
25+
uses: actions/cache@v4
26+
with:
27+
path: |
28+
~/.cargo/bin/
29+
~/.cargo/registry/index/
30+
~/.cargo/registry/cache/
31+
~/.cargo/git/db/
32+
target/
33+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
34+
- name: Build
35+
run: cargo build --profile release
36+
37+
38+

0 commit comments

Comments
 (0)