From c1addc7fd7481058a26ad994171f97d1db67d4c1 Mon Sep 17 00:00:00 2001 From: zjb0807 <zjb0807@qq.com> Date: Mon, 12 Oct 2020 13:35:48 +0800 Subject: [PATCH] Fix ci (#302) * fix ci * use self-hosted runner * remove cargo cache --- .github/workflows/master.yml | 14 ++++---------- .github/workflows/test.yml | 14 ++++---------- 2 files changed, 8 insertions(+), 20 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 4dbd377..a617349 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -7,22 +7,16 @@ on: jobs: build: - runs-on: ubuntu-18.04 + runs-on: [self-hosted, linux] + env: + SCCACHE_CACHE_SIZE: "50G" steps: - uses: actions/checkout@v2 - - name: Cache cargo - uses: actions/cache@v2 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-cargo - name: Install toolchain uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: nightly + toolchain: nightly-2020-09-27 override: true default: true - name: Install cargo-unleash diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eeffe86..3df0e59 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,22 +10,16 @@ on: jobs: build: - runs-on: ubuntu-18.04 + runs-on: [self-hosted, linux] + env: + SCCACHE_CACHE_SIZE: "50G" steps: - uses: actions/checkout@v2 - - name: Cache cargo - uses: actions/cache@v2 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-cargo - name: Install toolchain uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: nightly-2020-05-07 + toolchain: nightly-2020-09-27 components: rustfmt target: wasm32-unknown-unknown override: true -- GitLab