Skip to content

Commit c1addc7

Browse files
authored
Fix ci (#302)
* fix ci * use self-hosted runner * remove cargo cache
1 parent 6eff9a0 commit c1addc7

File tree

2 files changed

+8
-20
lines changed

2 files changed

+8
-20
lines changed

.github/workflows/master.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,16 @@ on:
77

88
jobs:
99
build:
10-
runs-on: ubuntu-18.04
10+
runs-on: [self-hosted, linux]
11+
env:
12+
SCCACHE_CACHE_SIZE: "50G"
1113
steps:
1214
- uses: actions/checkout@v2
13-
- name: Cache cargo
14-
uses: actions/cache@v2
15-
with:
16-
path: |
17-
~/.cargo/registry
18-
~/.cargo/git
19-
target
20-
key: ${{ runner.os }}-cargo
2115
- name: Install toolchain
2216
uses: actions-rs/toolchain@v1
2317
with:
2418
profile: minimal
25-
toolchain: nightly
19+
toolchain: nightly-2020-09-27
2620
override: true
2721
default: true
2822
- name: Install cargo-unleash

.github/workflows/test.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,16 @@ on:
1010

1111
jobs:
1212
build:
13-
runs-on: ubuntu-18.04
13+
runs-on: [self-hosted, linux]
14+
env:
15+
SCCACHE_CACHE_SIZE: "50G"
1416
steps:
1517
- uses: actions/checkout@v2
16-
- name: Cache cargo
17-
uses: actions/cache@v2
18-
with:
19-
path: |
20-
~/.cargo/registry
21-
~/.cargo/git
22-
target
23-
key: ${{ runner.os }}-cargo
2418
- name: Install toolchain
2519
uses: actions-rs/toolchain@v1
2620
with:
2721
profile: minimal
28-
toolchain: nightly-2020-05-07
22+
toolchain: nightly-2020-09-27
2923
components: rustfmt
3024
target: wasm32-unknown-unknown
3125
override: true

0 commit comments

Comments
 (0)