mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-18 23:02:35 +03:00
Merge pull request #1680 from AleoHQ/ci/remove-scoop-windows
Ci remove scoop windows dependency
This commit is contained in:
commit
81cd2e117d
31
.github/workflows/ci.yml
vendored
31
.github/workflows/ci.yml
vendored
@ -18,14 +18,13 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [macOS-latest, windows-latest, ubuntu-latest]
|
os: [macOS-latest, ubuntu-latest]
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
sccache-path: /home/runner/.cache/sccache
|
sccache-path: /home/runner/.cache/sccache
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
sccache-path: /Users/runner/Library/Caches/Mozilla.sccache
|
sccache-path: /Users/runner/Library/Caches/Mozilla.sccache
|
||||||
- os: windows-latest
|
|
||||||
sccache-path: "C:\\Users\\runneradmin\\AppData\\Local\\Mozilla\\sccache"
|
|
||||||
env:
|
env:
|
||||||
RUSTC_WRAPPER: sccache
|
RUSTC_WRAPPER: sccache
|
||||||
SCCACHE_CACHE_SIZE: 2G
|
SCCACHE_CACHE_SIZE: 2G
|
||||||
@ -54,14 +53,6 @@ jobs:
|
|||||||
brew update
|
brew update
|
||||||
brew install sccache
|
brew install sccache
|
||||||
|
|
||||||
- name: Install sccache Windows
|
|
||||||
if: matrix.os == 'windows-latest'
|
|
||||||
run: |
|
|
||||||
iwr -useb get.scoop.sh | iex
|
|
||||||
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
|
|
||||||
scoop install sccache
|
|
||||||
echo "C:\Users\runneradmin\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
|
||||||
|
|
||||||
- name: Install Rust Stable
|
- name: Install Rust Stable
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
@ -169,6 +160,24 @@ jobs:
|
|||||||
- name: Stop sccache server
|
- name: Stop sccache server
|
||||||
run: sccache --stop-server || true
|
run: sccache --stop-server || true
|
||||||
|
|
||||||
|
test-package-windows:
|
||||||
|
name: Test Package Windows
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install Rust Stable
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
toolchain: stable
|
||||||
|
override: true
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: |
|
||||||
|
cargo test --all
|
||||||
|
|
||||||
test-docs:
|
test-docs:
|
||||||
name: Test Docs
|
name: Test Docs
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
Reference in New Issue
Block a user