parent
9110b1d9e4
commit
d811f6e3ce
4
.github/workflows/build-test.yml
vendored
4
.github/workflows/build-test.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform:
|
platform:
|
||||||
- ubuntu-20.04
|
- ubuntu-16.04
|
||||||
- macos-latest
|
- macos-latest
|
||||||
- windows-latest
|
- windows-latest
|
||||||
toolchain:
|
toolchain:
|
||||||
@ -48,7 +48,7 @@ jobs:
|
|||||||
path: target
|
path: target
|
||||||
key: ${{ runner.os }}-cargo-build-target-build-tests-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-build-target-build-tests-${{ hashFiles('**/Cargo.lock') }}
|
||||||
- name: Cache sccache linux
|
- name: Cache sccache linux
|
||||||
if: matrix.platform == 'ubuntu-20.04'
|
if: matrix.platform == 'ubuntu-16.04'
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: "/home/runner/.cache/sccache"
|
path: "/home/runner/.cache/sccache"
|
||||||
|
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -21,7 +21,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform:
|
platform:
|
||||||
- ubuntu-20.04
|
- ubuntu-16.04
|
||||||
- macos-latest
|
- macos-latest
|
||||||
- windows-latest
|
- windows-latest
|
||||||
toolchain:
|
toolchain:
|
||||||
@ -52,7 +52,7 @@ jobs:
|
|||||||
path: target
|
path: target
|
||||||
key: ${{ runner.os }}-cargo-build-target-build-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-build-target-build-${{ hashFiles('**/Cargo.lock') }}
|
||||||
- name: Cache sccache linux
|
- name: Cache sccache linux
|
||||||
if: matrix.platform == 'ubuntu-20.04'
|
if: matrix.platform == 'ubuntu-16.04'
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: "/home/runner/.cache/sccache"
|
path: "/home/runner/.cache/sccache"
|
||||||
@ -105,7 +105,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload Linux build
|
- name: Upload Linux build
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
if: matrix.platform == 'ubuntu-20.04'
|
if: matrix.platform == 'ubuntu-16.04'
|
||||||
with:
|
with:
|
||||||
name: linux-artifacts
|
name: linux-artifacts
|
||||||
path: artifacts
|
path: artifacts
|
||||||
@ -132,7 +132,7 @@ jobs:
|
|||||||
zip-artifacts-creator:
|
zip-artifacts-creator:
|
||||||
name: Create zip artifacts
|
name: Create zip artifacts
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-16.04
|
||||||
steps:
|
steps:
|
||||||
- name: Set env
|
- name: Set env
|
||||||
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
|
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
|
||||||
@ -253,7 +253,7 @@ jobs:
|
|||||||
draft-release:
|
draft-release:
|
||||||
name: Draft Release
|
name: Draft Release
|
||||||
needs: zip-artifacts-creator
|
needs: zip-artifacts-creator
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-16.04
|
||||||
steps:
|
steps:
|
||||||
- name: Set env
|
- name: Set env
|
||||||
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
|
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
|
||||||
|
2
.github/workflows/check.yml
vendored
2
.github/workflows/check.yml
vendored
@ -9,7 +9,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
name: Check
|
name: Check
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-16.04
|
||||||
env:
|
env:
|
||||||
SCCACHE_CACHE_SIZE: "1G"
|
SCCACHE_CACHE_SIZE: "1G"
|
||||||
SCCACHE_IDLE_TIMEOUT: 0
|
SCCACHE_IDLE_TIMEOUT: 0
|
||||||
|
Loading…
Reference in New Issue
Block a user