Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge manta-pc branch for updated CI
  • Loading branch information
ghzlatarev committed Sep 20, 2021
commit d7c4a60997598a38a57b20b5acf91895599e511f
78 changes: 32 additions & 46 deletions .github/workflows/check_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,51 +49,37 @@ jobs:
SCCACHE_RELEASE_URL: https://github.com/mozilla/sccache/releases/download
SCCACHE_VERSION: v0.2.15
run: |
echo "=====================================================
echo "Freeing up disk space on CI system"
echo "=====================================================

echo "Listing 100 largest packages"
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n \
| tail -n 100
df -h
echo "Removing large packages"
sudo apt-get remove -y '^dotnet-.*'
sudo apt-get remove -y 'php.*'
sudo apt-get remove -y azure-cli\
google-cloud-sdk hhvm google-chrome-stable\
firefox powershell mono-devel
sudo apt-get remove -y perl-modules-5.30
sudo apt-get remove -y libwxgtk3.0-gtk3-0v5
sudo apt-get remove -y aspnetcore-runtime-3.1
sudo apt-get remove -y aspnetcore-runtime-5.0
sudo apt-get remove -y sphinxsearch
sudo apt-get remove -y libpython3.8-dev
sudo apt-get remove -y iso-codes
sudo apt-get remove -y moby-runc
sudo apt-get remove -y netstandard-targeting-pack-2.1
sudo apt-get remove -y humanity-icon-theme
sudo apt-get remove -y monodoc-manual
sudo apt-get remove -y libz3-4
sudo apt-get remove -y ruby2.7-doc
sudo apt-get remove -y linux-azure-tools-5.4.0-1047
sudo apt-get remove -y dotnet-targeting-pack-3.1
sudo apt-get remove -y liblapack-dev
sudo apt-get autoremove -y
sudo apt-get clean
df -h
echo "Removing large directories"

rm -rf /usr/share/dotnet/
df -h

- name: Set-Up
run: sudo apt install -y
cmake pkg-config libssl-dev
git build-essential clang
libclang-dev curl

- name: Install Rustup
SCCACHE_FILE=sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl
mkdir -p $HOME/.local/bin
curl -L "$SCCACHE_RELEASE_URL/$SCCACHE_VERSION/$SCCACHE_FILE.tar.gz" | tar xz
mv -f $SCCACHE_FILE/sccache $HOME/.local/bin/sccache
chmod +x $HOME/.local/bin/sccache
echo "$HOME/.local/bin" >> $GITHUB_PATH
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
-
name: cache cargo registry
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
key: cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
cargo-
-
name: cache sccache
uses: actions/cache@v2
continue-on-error: false
with:
path: /home/runner/.cache/sccache
key: sccache-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
sccache-
-
name: start sccache server
run: sccache --start-server
-
name: init
run: |
curl -s https://sh.rustup.rs -sSf | sh -s -- -y
source ${HOME}/.cargo/env
Expand Down Expand Up @@ -132,4 +118,4 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ needs.start-unit-test-checks.outputs.aws-region }}
runner-label: ${{ needs.start-unit-test-checks.outputs.runner-label }}
aws-instance-id: ${{ needs.start-unit-test-checks.outputs.aws-instance-id }}
aws-instance-id: ${{ needs.start-unit-test-checks.outputs.aws-instance-id }}
You are viewing a condensed version of this merge commit. You can view the full changes here.