First stable Flexutils-Toolkit release #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Name of the GitHub Action | |
name: Build Flexutils-Toolkit on Pull Request | |
# Specify when the Action should be triggered: when a pull request is opened against the 'devel' or 'master' branch | |
on: | |
pull_request: | |
branches: [devel, master] | |
# Define the job that should be run | |
jobs: | |
build: | |
# Specify the machine to run the job on | |
runs-on: ubuntu-22.04 | |
# Define the steps to be taken in the job | |
steps: | |
# Installing dependencies | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y xorg-dev libxcb-shm0 libglu1-mesa-dev python3-dev clang libc++-dev libc++abi-dev libsdl2-dev ninja-build libxi-dev libtbb-dev libosmesa6-dev libudev-dev autoconf libtool | |
# Installing CUDA | |
- name: Install CUDA | |
uses: Jimver/[email protected] | |
id: cuda-toolkit | |
with: | |
cuda: '12.2.2' | |
method: network | |
sub-packages: '["nvcc", "toolkit"]' | |
# Installing Miniconda | |
- name: Install Miniconda | |
working-directory: ${{ github.workspace }}/../ | |
run: | | |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh | |
bash Miniconda3-latest-Linux-x86_64.sh -b -p ${{ github.workspace }}/../miniconda/ | |
source ./miniconda/etc/profile.d/conda.sh | |
conda update -n base -c defaults conda -y | |
# Cloning Flexutils | |
- name: Cloning Flexutils-Toolkit | |
working-directory: ${{ github.workspace }}/../ | |
run: git clone https://github.com/I2PC/Flexutils-Toolkit.git:testRepo | |
# Checkout Flexutils-Toolkit to Pull Request branch if exists, by default stays in devel | |
- name: Conditionally checkout Flexutils-Toolkit to ${{ github.head_ref }} | |
working-directory: ${{ github.workspace }}/../testRepo | |
env: | |
BRANCH_NAME: ${{ github.head_ref }} | |
run: | | |
if [ $(git ls-remote --heads https://github.com/I2PC/Flexutils-Toolkit.git $BRANCH_NAME | wc -l) -eq 1 ]; then | |
git checkout $BRANCH_NAME | |
fi | |
# Installing Flexutils-Toolkit | |
- name: Install Flexutils and show log | |
working-directory: ${{ github.workspace }}/../testRepo | |
run: | | |
eval "$(${{ github.workspace }}/../miniconda/bin/conda shell.bash hook)" | |
conda activate | |
bash ./install.sh |