Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit 28207a8

Browse files
authored
Fix sccache server errors (#11675)
* actions * add build scripts * chmod +x * remove clang env * add ARM builds * install LLVM for Windows * check LLVM * remove fi * check platform * fix LLVM install on windows * diff cache * remove unexpected token && * remove build directory cache from windows * remove Show ENV * fix cross and RUSTFLAGS * final fix for ARM and Windows build * typo * fix PATH for artifacts * sudo for install set PATH . for artifacts.zip * target names for artifacts * platform names for artifacts * remove ARM builds PLATFORM for build scripts * remove PLATFORM and change PATH for artifacts.zip * change PATH for artifacts * fix sccache * set sccache env * Update install-sccache.ps1 * Update install-sccache.ps1 * global env * set global sccache env * SCCACHE_CACHE_SIZE "1G" SCCACHE_IDLE_TIMEOUT 0 * Update build-windows.sh
1 parent 748a8e3 commit 28207a8

File tree

6 files changed

+13
-7
lines changed

6 files changed

+13
-7
lines changed

.github/workflows/build-test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
jobs:
1010
build-tests:
1111
name: Test and Build
12+
env:
13+
SCCACHE_CACHE_SIZE: "1G"
14+
SCCACHE_IDLE_TIMEOUT: 0
1215
strategy:
1316
matrix:
1417
platform:

.github/workflows/build.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
jobs:
1111
build:
1212
name: Build Release
13+
env:
14+
SCCACHE_CACHE_SIZE: "1G"
15+
SCCACHE_IDLE_TIMEOUT: 0
1316
strategy:
1417
matrix:
1518
platform:
@@ -89,4 +92,4 @@ jobs:
8992
path: artifacts/
9093
- name: Prepare build directory for cache
9194
shell: bash
92-
run: bash scripts/actions/clean-target.sh
95+
run: bash scripts/actions/clean-target.sh

.github/workflows/check.yml

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
check:
1111
name: Check
1212
runs-on: ubuntu-16.04
13+
env:
14+
SCCACHE_CACHE_SIZE: "1G"
15+
SCCACHE_IDLE_TIMEOUT: 0
1316
steps:
1417
- name: Checkout sources
1518
uses: actions/checkout@master

scripts/actions/build-windows.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
#!/bin/bash
22
set -e # fail on any error
33
set -u # treat unset variables as error
4-
5-
# NOTE: Enables the aes-ni instructions for RustCrypto dependency.
6-
# If you change this please remember to also update .cargo/config
4+
# NOTE: Enables the aes-ni instructions for RustCrypto dependency.
5+
# If you change this please remember to also update .cargo/config
76
export RUSTFLAGS=" -Ctarget-feature=+aes,+sse2,+ssse3 -Ctarget-feature=+crt-static -Clink-arg=-s"
87

98
echo "_____ Build OpenEthereum and tools _____"

scripts/actions/install-sccache.ps1

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/usr/bin/env pwsh
22
$os=$args[0]
3-
$SCCACHE_CACHE_SIZE="1G"
4-
$SCCACHE_IDLE_TIMEOUT=0
53
$version="0.2.12"
64
echo "Current OS:" $os
75
switch ($os){

0 commit comments

Comments
 (0)