Skip to content

Commit e948816

Browse files
author
Georgi Petrov
committed
Test
1 parent 9a18e00 commit e948816

File tree

3 files changed

+27
-7
lines changed

3 files changed

+27
-7
lines changed

.github/workflows/analysis_workflow.yml

+10
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,16 @@ jobs:
144144
145145
dnf clean all
146146
147+
# sccache
148+
sccache_ver=`curl -sL -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" \
149+
https://api.github.com/repos/mozilla/sccache/releases/latest | jq -r ".tag_name"`
150+
151+
wget -nv https://github.com/mozilla/sccache/releases/download/$sccache_ver/sccache-$sccache_ver-x86_64-unknown-linux-musl.tar.gz \
152+
-O /tmp/sccache.tar.gz
153+
tar -xvf /tmp/sccache.tar.gz -C /tmp/
154+
cp /tmp/sccache-*/sccache /usr/local/bin/
155+
rm /tmp/sccache.tar.gz
156+
147157
- name: Extra envs
148158
run: |
149159
. build_tooling/vcpkg_caching.sh # Linux follower needs another call in CIBW

.github/workflows/benchmark_commits.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
version: "v0.4.0"
4545

4646
- name: Install deps
47+
shell: bash -el {0}
4748
run: |
4849
dnf update -y
4950
dnf remove -y 'gcc-toolset-13-*'
@@ -56,7 +57,7 @@ jobs:
5657
echo CXX=/opt/rh/gcc-toolset-10/root/bin/g++ | tee -a $GITHUB_ENV
5758
echo CMAKE_CXX_COMPILER=/opt/rh/gcc-toolset-10/root/bin/g++ | tee -a $GITHUB_ENV
5859
echo LD_LIBRARY_PATH=/opt/rh/gcc-toolset-10/root/usr/lib64:/opt/rh/gcc-toolset-10/root/usr/lib:/opt/rh/gcc-toolset-10/root/usr/lib64/dyninst | tee -a $GITHUB_ENV
59-
echo "/opt/rh/devtoolset-10/root/usr/bin" | tee -a $GITHUB_PATH
60+
echo /opt/rh/devtoolset-10/root/usr/bin | tee -a $GITHUB_PATH
6061
6162
dnf install -y mono-complete
6263
@@ -65,6 +66,7 @@ jobs:
6566
# We are changing the python here because we want to use the default python to build (it is devel version)
6667
# and this python for the rest of the testing
6768
- name: Select Python (Linux)
69+
shell: bash -el {0}
6870
run: |
6971
ls /opt/python
7072
echo /opt/python/cp36-cp36m/bin >> $GITHUB_PATH

.github/workflows/build_steps.yml

+14-6
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ jobs:
7474
with:
7575
submodules: recursive # Just in case a dep has its own third-party deps
7676

77+
- name: Configure sccache
78+
uses: mozilla-actions/[email protected]
79+
with:
80+
version: "v0.4.0"
7781

7882
- name: Windows Pagefile
7983
if: matrix.os == 'windows'
@@ -98,17 +102,21 @@ jobs:
98102
echo CXX=/opt/rh/gcc-toolset-10/root/bin/g++ | tee -a $GITHUB_ENV
99103
echo CMAKE_CXX_COMPILER=/opt/rh/gcc-toolset-10/root/bin/g++ | tee -a $GITHUB_ENV
100104
echo LD_LIBRARY_PATH=/opt/rh/gcc-toolset-10/root/usr/lib64:/opt/rh/gcc-toolset-10/root/usr/lib:/opt/rh/gcc-toolset-10/root/usr/lib64/dyninst | tee -a $GITHUB_ENV
101-
echo "/opt/rh/devtoolset-10/root/usr/bin" | tee -a $GITHUB_PATH
105+
echo /opt/rh/devtoolset-10/root/usr/bin | tee -a $GITHUB_PATH
102106
103107
dnf install -y mono-complete
104108
105109
dnf clean all
106110
107-
108-
- name: Configure sccache
109-
uses: mozilla-actions/[email protected]
110-
with:
111-
version: "v0.8.2"
111+
# sccache
112+
sccache_ver=`curl -sL -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" \
113+
https://api.github.com/repos/mozilla/sccache/releases/latest | jq -r ".tag_name"`
114+
115+
wget -nv https://github.com/mozilla/sccache/releases/download/$sccache_ver/sccache-$sccache_ver-x86_64-unknown-linux-musl.tar.gz \
116+
-O /tmp/sccache.tar.gz
117+
tar -xvf /tmp/sccache.tar.gz -C /tmp/
118+
cp /tmp/sccache-*/sccache /usr/local/bin/
119+
rm /tmp/sccache.tar.gz
112120
113121
- name: Extra envs
114122
# This has to come after msvc-dev-cmd to overwrite the bad VCPKG_ROOT it sets

0 commit comments

Comments
 (0)