Skip to content

Commit 072ab7b

Browse files
remove cache from workflow
1 parent 217acea commit 072ab7b

File tree

1 file changed

+4
-42
lines changed

1 file changed

+4
-42
lines changed

.github/workflows/rust.yml

Lines changed: 4 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ jobs:
7979
echo "CARGO_BUILD_TARGET=x86_64-pc-windows-msvc" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
8080
- name: Build (windows)
8181
run: |
82-
cargo clean
8382
cargo build --no-default-features --features quickjs-ng
8483
- name: Test (windows)
8584
run: |
@@ -110,13 +109,12 @@ jobs:
110109
- name: Prepare
111110
run: |
112111
sudo apt update
113-
sudo apt install ccache llvm autoconf2.13 automake clang valgrind -y
112+
sudo apt install llvm autoconf2.13 automake clang valgrind -y
114113
- name: Build
115114
run: |
116115
export SHELL=/bin/bash
117116
export CC=/usr/bin/clang
118117
export CXX=/usr/bin/clang++
119-
cargo clean
120118
cargo build --no-default-features --features quickjs-ng
121119
- name: Run tests
122120
run: cargo test --no-default-features --features quickjs-ng
@@ -129,30 +127,13 @@ jobs:
129127
- name: Prepare
130128
run: |
131129
sudo apt update
132-
sudo apt install ccache llvm autoconf2.13 automake clang valgrind -y
133-
- name: Cache cargo registry
134-
uses: actions/cache@v2
135-
with:
136-
path: ~/.cargo/registry
137-
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }}
138-
- name: Cache cargo index
139-
uses: actions/cache@v2
140-
with:
141-
path: ~/.cargo/git
142-
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.toml') }}
143-
- name: Ccache
144-
uses: actions/cache@v2
145-
with:
146-
path: ~/.ccache
147-
key: ${{ runner.OS }}-ccache-${{ hashFiles('**\Cargo.toml') }}
130+
sudo apt install llvm autoconf2.13 automake clang valgrind -y
148131
- name: Build
149132
run: |
150133
export SHELL=/bin/bash
151134
export CC=/usr/bin/clang
152135
export CXX=/usr/bin/clang++
153-
ccache -z
154-
CCACHE=$(which ccache) cargo build --verbose
155-
ccache -s
136+
cargo build --verbose
156137
cargo clean
157138
- name: Format
158139
run: |
@@ -196,31 +177,12 @@ jobs:
196177
- name: Prepare
197178
run: |
198179
sudo apt update
199-
sudo apt install ccache llvm autoconf2.13 automake clang valgrind -y
200-
- name: Cache cargo registry
201-
uses: actions/cache@v2
202-
with:
203-
path: ~/.cargo/registry
204-
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }}
205-
- name: Cache cargo index
206-
uses: actions/cache@v2
207-
with:
208-
path: ~/.cargo/git
209-
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.toml') }}
210-
- name: Ccache
211-
uses: actions/cache@v2
212-
with:
213-
path: ~/.ccache
214-
key: ${{ runner.OS }}-ccache-${{ hashFiles('**\Cargo.toml') }}
180+
sudo apt install llvm autoconf2.13 automake clang valgrind -y
215181
- name: Build
216182
run: |
217183
export SHELL=/bin/bash
218184
export CC=/usr/bin/clang
219185
export CXX=/usr/bin/clang++
220-
ccache -z
221-
CCACHE=$(which ccache) cargo build --verbose
222-
ccache -s
223-
cargo clean
224186
cargo build
225187
- name: Run tests
226188
run: cargo test --verbose

0 commit comments

Comments
 (0)