Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
siboehm committed Jan 14, 2024
1 parent b3b25e5 commit efba024
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ jobs:
- name: Integration test + devtest
run: |
./util/test_multiplayer.sh
- name: Setup mambaforge
run: |
source ./util/ci/common.sh
install_mambaforge
# Build with prometheus-cpp (server-only)
clang_9_prometheus:
Expand Down
17 changes: 17 additions & 0 deletions util/ci/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,20 @@ install_macos_deps() {
brew unlink $(brew ls --formula)
brew link "${pkgs[@]}"
}

install_mambaforge() {
# Download Mambaforge installer
wget -qO- https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh -O mambaforge.sh

# Install Mambaforge silently
bash mambaforge.sh -b -p $HOME/mambaforge

# Remove installer
rm mambaforge.sh

# Initialize Mambaforge
eval "$($HOME/mambaforge/bin/conda shell.bash hook)"

# Update Mamba
mamba update -n base -c defaults mamba
}

0 comments on commit efba024

Please sign in to comment.